Bug #94014 Primary / Secondary role not shown in P_S.replication_group_members
Submitted: 23 Jan 2019 9:11 Modified: 25 Jul 2019 11:22
Reporter: Matthias Crauwels (OCA) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Documentation Severity:S3 (Non-critical)
Version:5.7 OS:Any
Assigned to: David Moss CPU Architecture:Any

[23 Jan 2019 9:11] Matthias Crauwels
Description:
The documentation on https://dev.mysql.com/doc/refman/5.7/en/group-replication-replication-group-members.html shows that the replication_group_members table in performance_schema would show the MEMBER_ROLE and MEMBER_VERSION for MySQL 5.7

However this feature is currently not supported for MySQL 5.7.

How to repeat:
# mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 35
Server version: 5.7.25-log MySQL Community Server (GPL)

Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> SELECT * FROM performance_schema.replication_group_members;
+---------------------------+--------------------------------------+-------------+-------------+--------------+
| CHANNEL_NAME              | MEMBER_ID                            | MEMBER_HOST | MEMBER_PORT | MEMBER_STATE |
+---------------------------+--------------------------------------+-------------+-------------+--------------+
| group_replication_applier | 3811bcf1-1e85-11e9-bcae-5254008481d5 | node2       |        3306 | ONLINE       |
| group_replication_applier | 381400ec-1e85-11e9-b322-5254008481d5 | node1       |        3306 | ONLINE       |
| group_replication_applier | 39380c64-1e85-11e9-b2d2-5254008481d5 | node3       |        3306 | ONLINE       |
+---------------------------+--------------------------------------+-------------+-------------+--------------+
3 rows in set (0.00 sec)

Suggested fix:
It would be nice if this behaviour could be back-ported from 8.0 to 5.7 as this gives useful information for cluster monitoring.

If not possible, docs should be updated to reflect the correct output for 5.7
[23 Jan 2019 12:01] MySQL Verification Team
Hello Matthias,

Thank you for the report and feedback.
This looks like doc issue to me, verifying after comparing https://dev.mysql.com/doc/refman/5.7/en/replication-group-members-table.html and https://dev.mysql.com/doc/refman/8.0/en/replication-group-members-table.html

regards,
Umesh
[25 Jul 2019 11:22] Erlend Dahl
Thanks for your feedback, the docs have been updated to match version 5.7.