[ERROR] Plugin group_replication reported: 'This member has more executed transactions than those present in the group. Local transactions: bb874065-c485-11e8-8b52-000c2934472e:1 > Group transactions: 3db33b36-0e51-409f-a61d-c99756e90155:1-11'
[ERROR] Plugin group_replication reported: 'The member contains transactions not present in the group. The member will now exit the group.'
[Note] Plugin group_replication reported: ‘Toforcethis member intothe groupyou can use the group_replication_allow_local_disjoint_gtids_join option'
解决方案:
根据提示打开set global group_replication_allow_local_disjoint_gtids_join=ON;
02 常见故障2
1
2
3
[ERROR] Plugin group_replication reported: 'This member has more executed transactions than those present in the group. Local transactions: bb874065-c485-11e8-8b52-000c2934472e:1 > Group transactions: 3db33b36-0e51-409f-a61d-c99756e90155:1-15'
[Warning] Plugin group_replication reported: 'The member contains transactions not present in the group. It is only allowed to join due to group_replication_allow_local_disjoint_gtids_join option'
[Note] Plugin group_replication reported: 'This server is working as secondary member with primary member address localhost.localdomaion:3306.'
CHANGE MASTER TO MASTER_USER='rpl_user', MASTER_PASSWORD='rpl_pass' FOR CHANNEL 'group_replication_recovery';
03 常见故障3
本机测试时,遇到下面的问题
1
2
3
4
5
[Warning] Storing MySQL usernameorpasswordinformation inthe master info repository isnotsecure andistherefore notrecommended. Please consider using the USERandPASSWORDconnectionoptions forSTART SLAVE; see the 'START SLAVE Syntax'inthe MySQL Manual formore information.
[ERROR] Plugin group_replication reported: 'There was an error when connecting to the donor server. Please check that group_replication_recovery channel credentials and all MEMBER_HOST column values of performance_schema.replication_group_members table are correct and DNS resolvable.'
[ERROR] Plugin group_replication reported: 'For details please check performance_schema.replication_connection_status table and error log messages of Slave I/O for channel group_replication_recovery.'
[Note] Plugin group_replication reported: 'Retrying group recovery connection with another donor. Attempt /'
ERROR (HY000): The server is not configured properly to be an active member of the group. Please see moredetails on error log.
#查看log文件,发现只有一个warning:
2019-02-20T07::30.233937Z [Warning] Plugin group_replication reported: 'Group Replication requires slave-preserve-commit-order to be setto ON when using morethan 1 applier threads.
解决方案:
1
2
3
4
5
6
7
8
9
mysql--root@localhost:(none) ::>>show variables like "%preserve%";
+--------------------------------+---------+
| Variable_name | Value |
+--------------------------------+---------+
| slave_preserve_commit_order | OFF|
+--------------------------------+---------+
row inset(0.01 sec)
mysql--root@localhost:(none) ::>>set global slave_preserve_commit_order=;
Query OK, rowsaffected (0.00 sec)
05 常见问题5
1
2
3
4
2019-02-20T08::31.088437Z [Warning] Plugin group_replication reported: '[GCS] Connection attempt from IP address 192.168.9.208 refused.
Address is not in the IP whitelist.'
2019-02-20T08::32.088676Z [Warning] Plugin group_replication reported: '[GCS] Connection attempt from IP address 192.168.9.208 refused.
[ERROR] Plugin group_replication reported: ‘[GCS] Error on opening a connection to oceanbase07: on localport: '.'
[ERROR] Plugin group_replication reported: ‘[GCS] Error on opening a connection to oceanbase08: on localport: '.'
[ERROR] Plugin group_replication reported: ‘[GCS] Error on opening a connection to oceanbase07: on localport: '.'
解决方案:
未开通防火墙上的固定端口,开通防火墙之后即可解决
08 常见问题8
1
2
3
4
[Warning] Storing MySQL usernameorpasswordinformation inthe master info repository isnotsecure andistherefore notrecommended. Please consider using the USERandPASSWORDconnectionoptions forSTART SLAVE; see the 'START SLAVE Syntax'inthe MySQL Manual formore information.
[ERROR] Could notfind target log file mentioned inrelay log info inthe indexfile './work_NAT_1-relay-bin. index'during relay log initialization.
[ERROR] Slave: Failed toinitialize the master info structure forchannel ''; its record may still be present in'mysql.slave_master_info'table, consider deleting it.
[ERROR] Could notfind target log file mentioned inrelay log info inthe indexfile './work_NAT_1-relay-bin-group_replication_recovery.index'during relay log initialization.
[ERROR] Slave: Failed toinitialize the master info structure forchannel 'group_replication_recovery'; its record may still be present in'mysql.slave_master_info'table, consider deleting it.
[ERROR] Failed tocreateorrecover replication info repositories.