【问题标题】:MySQL 8.0.16 (Windows) Group Replication Fresh Setup : Not able to add second memberMySQL 8.0.16 (Windows) 组复制新设置:无法添加第二个成员
【发布时间】:2020-04-23 05:52:09
【问题描述】:

我正在尝试使用组复制功能设置 MySQL HA。来自https://dev.mysql.com/doc/refman/8.0/en/group-replication.html 的参考指令。多次阅读并尝试所有步骤,以确保正确执行所有步骤,但始终显示相同的信息。 问题解决后,我还将添加第 3 和第 4 个节点。在 Windows 上完成此设置后,我将在 Linux 上重复,然后是生产 (Linux)

在组中添加第二个成员时出现错误日志

一)

mysql> START GROUP_REPLICATION;
ERROR 3092 (HY000): The server is not configured properly to be an active member of the group. Please see more details on error log.

B) 第二台 MySQL 数据库服务器的服务器日志

2020-01-05T10:45:13.734994Z 0 [ERROR] [MY-011526] [Repl] Plugin group_replication reported: 'This member has more executed transactions than those present in the group. Local transactions: 1aaf20e2-2fa5-11ea-a9f1-040e3c9a1821:1 > Group transactions: aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa:1,
f28d474c-2fa1-11ea-8748-040e3c9a1821:1'
2020-01-05T10:45:13.744824Z 0 [ERROR] [MY-011522] [Repl] Plugin group_replication reported: 'The member contains transactions not present in the group. The member will now exit the group.'

C) 第一个 MySQL 数据库服务器的服务器日志

2020-01-05T10:13:07.033377Z 11 [System] [MY-010597] [Repl] 'CHANGE MASTER TO FOR CHANNEL 'group_replication_applier' executed'. Previous state master_host='', master_port= 3306, master_log_file='', master_log_pos= 4, master_bind=''. New state master_host='<NULL>', master_port= 0, master_log_file='', master_log_pos= 4, master_bind=''.
2020-01-05T10:45:15.735673Z 0 [Warning] [MY-011499] [Repl] Plugin group_replication reported: 'Members removed from the group: L-156179931:3326'

【问题讨论】:

    标签: mysql high-availability mysql-8.0 mysql-cluster mysql-group-replication


    【解决方案1】:

    第二个成员的事务在主节点上不存在,并且无法加入组。

    您应该尝试了解导致事务的原因,在每个命令后检查 GTID_EXECUTED (SELECT @@global.gtid_executed;) 并找出罪魁祸首。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-01-18
      • 1970-01-01
      • 2015-05-12
      • 1970-01-01
      相关资源
      最近更新 更多