Hi Team,
I have a 3-node MySQL GR(group replication) single primary cluster in k8s env.
Sample:
mysql> select MEMBER_HOST,MEMBER_STATE,MEMBER_ROLE from performance_schema.replication_group_members;
+--------------------------------------------------------------------------------------+--------------+-------------+
| MEMBER_HOST | MEMBER_STATE | MEMBER_ROLE |
+--------------------------------------------------------------------------------------+--------------+-------------+
| mysql-gr-auto-test-0.xxxx.svc.cluster.local | ONLINE | PRIMARY |
| mysql-gr-auto-test-1.xxxx.svc.cluster.local | ONLINE | SECONDARY |
| mysql-gr-auto-test-2.xxxx.svc.cluster.local | ONLINE | SECONDARY |
+--------------------------------------------------------------------------------------+--------------+-------------+
Percona mysql version: 8.0.35-27
mysql> show plugins;
+----------------------------------+----------+--------------------+----------------------+---------+
| group_replication | ACTIVE | GROUP REPLICATION | group_replication.so | GPL |
| clone | ACTIVE | CLONE | mysql_clone.so | GPL |
+----------------------------------+----------+--------------------+----------------------+---------+
I have all end-to-end set up done for the clone plugin in all 3 nodes.
The problem is the automatic distributed recovery(via clone plugin) is not working here, but when I try manually with the same user it’s working as expected.
Can you please help me identify what is missing here, even if all the variables are user privileges are correctly set why the automatic plugin rebuild is not happening in case of need?
User Privilege details:
mysql> show grants for 'repl_usr'@'%';
+---------------------------------------------------------------------------------------------------+
| Grants for repl_usr@% |
+---------------------------------------------------------------------------------------------------+
| GRANT REPLICATION SLAVE ON *.* TO `repl_usr`@`%` |
| GRANT BACKUP_ADMIN,CLONE_ADMIN,CONNECTION_ADMIN,GROUP_REPLICATION_STREAM ON *.* TO `repl_usr`@`%` |
+---------------------------------------------------------------------------------------------------+
Sample manual command that is working as expected:
CLONE INSTANCE FROM 'repl_usr'@'mysql-gr-auto-test-0.xxxx.svc.cluster.local':3306 IDENTIFIED BY 'xxxx';
Pat of mysql conf file:
plugin-load-add=mysql_clone.so
clone=FORCE_PLUS_PERMANENT
clone_delay_after_data_drop=5
clone_valid_donor_list='mysql-gr-auto-test-0.xxxx.svc.cluster.local:3306,mysql-gr-auto-test-1.xxxx.svc.cluster.local:3306,mysql-gr-auto-test-2.mysql-gr-auto-test.xxxx.svc.cluster.local:3306'
Let me know in case of further info is needed here.