【MGR】MGR-imeout on wait for view after joining group
1.MGR其中一個節點掛了,按照以下的方式恢復
2 修復過程
-
1.其中一臺second上備份全庫
-
/usr/local/mysql/bin/mysqldump -uroot -P3312 -S /data0/mysql/log/testdb/mysql_testdb.sock -prootroot --master-data=2 --databases TESTDB db1 db10 db11 db12 db2 db3 vodb > alldb.sql
-
-
2.sql有記錄gtid複製點資訊
-
SET @@GLOBAL.GTID_PURGED='aaaaaaaa-bbbb-cccc-ddda-aaaaaaaaaaaa:1-36';
-
-
-
3.失敗節點匯入sql
-
-
-
4.mysql> START GROUP_REPLICATION;
-
-
- 然後就一直失敗:
2018-04-09T02:11:25.147448Z 0 [Note] Plugin group_replication reported: 'client connected to mysql02 24902 fd 66'
2018-04-09T02:11:55.147914Z 0 [ERROR] Plugin group_replication reported: '[GCS] Timeout while waiting for the group communication engine to be ready!'
2018-04-09T02:11:55.147974Z 0 [ERROR] Plugin group_replication reported: '[GCS] The group communication engine is not ready for the member to join. Local port: 24901'
2018-04-09T02:11:55.148058Z 0 [Note] Plugin group_replication reported: 'state 4272 action xa_terminate'
2018-04-09T02:11:55.148081Z 0 [Note] Plugin group_replication reported: 'new state x_start'
2018-04-09T02:11:55.148085Z 0 [Note] Plugin group_replication reported: 'state 4272 action xa_exit'
2018-04-09T02:11:55.148183Z 0 [Note] Plugin group_replication reported: 'Exiting xcom thread'
2018-04-09T02:11:55.148219Z 0 [Note] Plugin group_replication reported: 'new state x_start'
2018-04-09T02:11:55.148920Z 0 [Warning] Plugin group_replication reported: 'read failed'
2018-04-09T02:11:55.169025Z 0 [ERROR] Plugin group_replication reported: '[GCS] The member was unable to join the group. Local port: 24901'
null2018-04-09T02:12:25.145183Z 27 [ERROR] Plugin group_replication reported: 'Timeout on wait for view after joining group'
2018-04-09T02:12:26.145357Z 27 [Note] Plugin group_replication reported: 'Requesting to leave the group despite of not being a member'
2018-04-09T02:12:26.145417Z 27 [ERROR] Plugin group_replication reported: '[GCS] The member is leaving a group without being on one.'
2018-04-09T02:12:26.145551Z 27 [Note] Plugin group_replication reported: 'auto_increment_increment is reset to 1'
2018-04-09T02:12:26.145594Z 27 [Note] Plugin group_replication reported: 'auto_increment_offset is reset to 1'
2018-04-09T02:12:26.146050Z 32 [Note] Error reading relay log event for channel 'group_replication_applier': slave SQL thread was killed
2018-04-09T02:12:26.146573Z 29 [Note] Plugin group_replication reported: 'The group replication applier thread was killed'
2018-04-09T02:13:57.164181Z 27 [Note] Aborted connection 27 to db: 'unconnected' user: 'root' host: 'localhost' (Got timeout reading communication packets)
null2018-04-09T02:20:55.810967Z 34 [Note] Aborted connection 34 to db: 'mysql' user: 'root' host: 'localhost' (Got timeout reading communication packets)
2018-04-09T02:11:55.147914Z 0 [ERROR] Plugin group_replication reported: '[GCS] Timeout while waiting for the group communication engine to be ready!'
2018-04-09T02:11:55.147974Z 0 [ERROR] Plugin group_replication reported: '[GCS] The group communication engine is not ready for the member to join. Local port: 24901'
2018-04-09T02:11:55.148058Z 0 [Note] Plugin group_replication reported: 'state 4272 action xa_terminate'
2018-04-09T02:11:55.148081Z 0 [Note] Plugin group_replication reported: 'new state x_start'
2018-04-09T02:11:55.148085Z 0 [Note] Plugin group_replication reported: 'state 4272 action xa_exit'
2018-04-09T02:11:55.148183Z 0 [Note] Plugin group_replication reported: 'Exiting xcom thread'
2018-04-09T02:11:55.148219Z 0 [Note] Plugin group_replication reported: 'new state x_start'
2018-04-09T02:11:55.148920Z 0 [Warning] Plugin group_replication reported: 'read failed'
2018-04-09T02:11:55.169025Z 0 [ERROR] Plugin group_replication reported: '[GCS] The member was unable to join the group. Local port: 24901'
null2018-04-09T02:12:25.145183Z 27 [ERROR] Plugin group_replication reported: 'Timeout on wait for view after joining group'
2018-04-09T02:12:26.145357Z 27 [Note] Plugin group_replication reported: 'Requesting to leave the group despite of not being a member'
2018-04-09T02:12:26.145417Z 27 [ERROR] Plugin group_replication reported: '[GCS] The member is leaving a group without being on one.'
2018-04-09T02:12:26.145551Z 27 [Note] Plugin group_replication reported: 'auto_increment_increment is reset to 1'
2018-04-09T02:12:26.145594Z 27 [Note] Plugin group_replication reported: 'auto_increment_offset is reset to 1'
2018-04-09T02:12:26.146050Z 32 [Note] Error reading relay log event for channel 'group_replication_applier': slave SQL thread was killed
2018-04-09T02:12:26.146573Z 29 [Note] Plugin group_replication reported: 'The group replication applier thread was killed'
2018-04-09T02:13:57.164181Z 27 [Note] Aborted connection 27 to db: 'unconnected' user: 'root' host: 'localhost' (Got timeout reading communication packets)
null2018-04-09T02:20:55.810967Z 34 [Note] Aborted connection 34 to db: 'mysql' user: 'root' host: 'localhost' (Got timeout reading communication packets)
2 修復過程
-
mysql> SELECT * FROM performance_schema.replication_group_members;
-
+---------------------------+--------------------------------------+-------------+-------------+--------------+
-
| CHANNEL_NAME | MEMBER_ID | MEMBER_HOST | MEMBER_PORT | MEMBER_STATE |
-
+---------------------------+--------------------------------------+-------------+-------------+--------------+
-
| group_replication_applier | 0a4a3b1d-ebc1-11e7-bf81-005056b9d83d | mysql03 | 3312 | ONLINE |
-
| group_replication_applier | 648a6cb1-ebc1-11e7-8425-005056b9f3f2 | mysql02 | 3312 | ONLINE |
-
| group_replication_applier | d59224f9-ebc1-11e7-92f2-005056b96aae | mysql01 | 3312 | UNREACHABLE |
-
+---------------------------+--------------------------------------+-------------+-------------+--------------+
UNREACHABLE 表示節點處於不可達狀態,無法與之發生網路通訊
-
- 檢查半天是防火強的原因
- centos 6 的nc -vz ip port即可獲取狀態
centos 7的nc命令有變化
[root@mysql02 ~]# nc -w 1 10.168.17.202 3312 < /dev/null && echo "tcp port ok"
[root@mysql02 ~]# nc -w 1 10.168.17.202 3312 < /dev/null && echo "tcp port ok"
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29096438/viewspace-2152698/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- MGR(MySQL Group Replication)部署搭建測試MySql
- mgr引數之-group_replication_gtid_assignment_block_size小結BloC
- MySQL增強半同步引數rpl_semi_sync_master_wait_point值AFTER_SYNC和AFTER_COMMITMySqlASTAIMIT
- Failed to restart Polybase Data Movement service after running sp_polybase_join_groupAIREST
- 【go語言】wait,wait for meGoAI
- 單機MGR搭建
- MySQL MGR 叢集搭建MySql
- 深入理解 ceph mgr
- MySQL之MGR白名單MySql
- 高可用 proxysql + mysql MGRMySql
- mysql8.0.31 mgr搭建MySql
- MySQL組複製(MGR)全解析 Part 5 MGR單主模式部署指南MySql模式
- wait() vs sleep()AI
- 外部插入.after()
- MySQL組複製(MGR)全解析 Part 4 MGR單主模式部署前準備MySql模式
- Oracle RAC Wait EventsOracleAI
- Golang CLOSE WAIT 分析GolangAI
- missing ) after argument list
- 03-dispatch_after
- Windows Server 2012配置MySQL 8.0.20 MGRWindowsServerMySql
- group conv
- Android自定義View:View(二)AndroidView
- 【YashanDB知識庫】YAS-02024 lock wait timeout, wait time 0 millisecondsAI
- group_replication_bootstrap_group 用於什麼boot
- 資料庫的sort group by和hash group by資料庫
- ViewView
- 調整time_waitAI
- 10.25 V$SESSION_WAITSessionAI
- cursor pin S wait on XAI
- [20191223]Wait for Java.txtAIJava
- Oracle Enqueues Wait Events 二OracleENQAI
- Oracle Enqueues Wait Events 一OracleENQAI
- Oracle Enqueues Wait Events 三OracleENQAI
- cursor: pin S wait on XAI
- MXNet: wait_to_read 方法AI
- sleep()和wait()區別AI
- Android View 系統 1 - View樹AndroidView
- Use-After-Free漏洞