【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
- Failed to restart Polybase Data Movement service after running sp_polybase_join_groupAIREST
- MySQL增強半同步引數rpl_semi_sync_master_wait_point值AFTER_SYNC和AFTER_COMMITMySqlASTAIMIT
- 單機MGR搭建
- MySQL之MGR白名單MySql
- 深入理解 ceph mgr
- MySQL MGR 叢集搭建MySql
- 高可用 proxysql + mysql MGRMySql
- 【WAIT】wait eventAI
- MySQL組複製(MGR)全解析 Part 5 MGR單主模式部署指南MySql模式
- jQuery after()jQuery
- Ora-600 [15160] Joining Dba_objects and Dba_segmentsObject
- mysql8.0.31 mgr搭建MySql
- MySQL 5.7 MGR 叢集搭建MySql
- MySQL組複製(MGR)全解析 Part 4 MGR單主模式部署前準備MySql模式
- 【go語言】wait,wait for meGoAI
- MySQL MGR 叢集搭建(單主模式)MySql模式
- 探究MySQL MGR的讀寫分離MySql
- Oracle GroupOracle
- 沃趣微講堂 | PXC、MGC&MGR原理與實踐對比(五):MGR新增節點流程GC
- group_replication_bootstrap_group 用於什麼boot
- 資料庫的sort group by和hash group by資料庫
- fork waitAI
- oracle wait!OracleAI
- wait eventsAI
- wait() and notify()AI
- 沃趣微講堂 | PXC、MGC&MGR原理與實踐對比(八):PXC、MGC和MGR crash recoveryGC
- 沃趣微講堂 | PXC、MGC&MGR原理與實踐對比(七):MGR叢集初始化GC
- MySQL 5.7半同步複製after sync和after commit詳解MySqlMIT
- MySQL組複製MGR(一)-- 技術概述MySql
- MySQL:MGR 學習(1):寫集合(Write set)MySql
- Mysql MGR監控及最佳化點MySql
- MySQL高可用架構-MMM、MHA、MGR、PXCMySql架構
- oracle partition by group by,詳解partition by和group by對比Oracle
- Write after the error occurs........Error
- MySQL Group ReplicationMySql
- Group by 優化優化
- Oracle Hash Group ByOracle