LoginSignup
0
0

More than 5 years have passed since last update.

MySQLでSTART GROUP_REPLICATIONを実行してもグループに参加できない時

Posted at

原因1

hostnameでお互いに通信できていない。
/etc/hostsに登録する。

原因2

原因1を解決して、START GROUP_REPLICATIONを実行してもだめでした。
/var/log/mysqld.logをみると

2017-03-30T05:19:11.108563Z 0 [ERROR] Plugin group_replication reported: 'This member has more executed transactions than those present in the group. Local transactions: 78394537-1501-11e7-8d4e-00155d041427:1-2 > Group transactions: 6e1ebdff-4b6b-44eb-ba75-fdcb479ba0af:1-5,
78707fef-1501-11e7-8eaa-00155d041426:1-2'
2017-03-30T05:19:11.108601Z 0 [ERROR] Plugin group_replication reported: 'The member contains transactions not present in the group. The member will now exit the group.'
2017-03-30T05:19:11.108606Z 0 [Note] Plugin group_replication reported: 'To force this member into the group you can use the group_replication_allow_local_disjoint_gtids_join option'

The member contains transactions not present in the group
グループには無いトランザクションを、参加メンバーが持っている事が問題らしい。

このノードは、まっさらな状態なので、本来は、起きないとおもいますが、原因1の時に、一度START GROUP_REPLICATIONを実行して失敗しているのでこの不整合が起きたと思われます。

追加するノードで、group_replication_allow_local_disjoint_gtids_join optionオプションをつけることでも解決できるようですが、
RESET MASTER;
START GROUP_REPLICATION;
を実行することでOKでした

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0