日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 运维知识 > 数据库 >内容正文

数据库

mysql mgr bug_Mysql MGR架构误操作引发的问题处理

發(fā)布時(shí)間:2023/12/3 数据库 39 豆豆
生活随笔 收集整理的這篇文章主要介紹了 mysql mgr bug_Mysql MGR架构误操作引发的问题处理 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

【背景介紹】

故障方描述:一次用戶刷權(quán)限的時(shí)候不小心把數(shù)據(jù)庫(kù)用戶表記錄刪掉了,執(zhí)行之后發(fā)現(xiàn)不對(duì)后重建用戶,殺掉進(jìn)程后重新MGR啟動(dòng)報(bào)錯(cuò)。

【報(bào)錯(cuò)信息】

2018-06-13T12:47:41.405593Z 32 [Note] Plugin group_replication reported: 'Group communication SSL configuration: group_replication_ssl_mode: "DISABLED"'

2018-06-13T12:47:41.405820Z 32 [Note] Plugin group_replication reported: '[GCS] Added automatically IP ranges 127.0.0.1/8,172.xx.xxx.xxx/26,192.xxx.xx.xxx/24 to the whitelist'

2018-06-13T12:47:41.406172Z 32 [Note] Plugin group_replication reported: '[GCS] SSL was not enabled'

2018-06-13T12:47:41.406216Z 32 [Note] Plugin group_replication reported: 'Initialized group communication with configuration: group_replication_group_name: "b47a8cea-6cf5-4ea4-933f-a8c20905f900"; group_replication_local_address: "172.xx.xxx.xxx:xxx1"; group_replication_group_seeds: "172.xx.xxx.xxx:xxx1,172.xx.xxx.xxx:24901,172.xx.xxx.xxx:xxxx1"; group_replication_bootstrap_group: true; group_replication_poll_spin_loops: 0; group_replication_compression_threshold: 100; group_replication_ip_whitelist: "AUTOMATIC"'

2018-06-13T12:47:41.406944Z 34 [Note] 'CHANGE MASTER TO FOR CHANNEL 'group_replication_applier' executed'. Previous state master_host='', master_port= 0, master_log_file='', master_log_pos= 4, master_bind=''. New state master_host='', master_port= 0, master_log_file='', master_log_pos= 4, master_bind=''.

2018-06-13T12:47:41.434136Z 34 [ERROR] Slave SQL for channel 'group_replication_applier': Slave failed to initialize relay log info structure from the repository, Error_code: 1872

2018-06-13T12:47:41.434183Z 34 [ERROR] Plugin group_replication reported: 'Error while starting the group replication applier thread'

2018-06-13T12:47:41.434323Z 34 [Note] Plugin group_replication reported: 'The group replication applier thread was killed'

2018-06-13T12:47:41.434389Z 32 [ERROR] Plugin group_replication reported: 'Unable to initialize the Group Replication applier module.'

2018-06-13T12:47:41.434551Z 32 [Note] Plugin group_replication reported: 'Requesting to leave the group despite of not being a member'

2018-06-13T12:47:41.434588Z 32 [ERROR] Plugin group_replication reported: '[GCS] The member is leaving a group without being on one.'

【問題分析】

從報(bào)錯(cuò)日志查看,數(shù)據(jù)庫(kù)在識(shí)別relay log時(shí)出現(xiàn)問題,從Oracle官方文檔可以確認(rèn)異常終止MGR服務(wù)命中了Bug25534078:

MySQL Innodb Cluster Node Failed To Start With Error: "[ERROR] Slave SQL for channel 'group_replication_applier': Slave failed to initialize relay log info structure from the repository, Error_code: 1872" (文檔 ID 2386403.1)

進(jìn)行信息查詢符合上面BUG現(xiàn)象:

【解決辦法】

清理mysql.slave_relay_log_info時(shí)先記錄日志信息,按照如下方法正常修復(fù),同時(shí)建議參數(shù)文件要指定relay log參數(shù)路徑。

但是由于再重新創(chuàng)建用戶時(shí),沒有關(guān)閉binlog同步到其他節(jié)點(diǎn),導(dǎo)致其他節(jié)點(diǎn)加入集群是報(bào)錯(cuò)。

提供第一個(gè)方案:進(jìn)行reset master(此操作非常危險(xiǎn)),但是由于MGR本身存在問題時(shí)間比較久導(dǎo)致binlog過期丟失,因此無法修復(fù)。

提供第二個(gè)方案:暫時(shí)提供單節(jié)點(diǎn)服務(wù),制定好方案后,找另一個(gè)時(shí)間窗口對(duì)MGR架構(gòu)進(jìn)行修復(fù)。

【總結(jié)】

在涉及數(shù)據(jù)庫(kù)重要配置時(shí),謹(jǐn)慎操作。

在出現(xiàn)問題的時(shí)候更加注意再次誤操作,導(dǎo)致更加難恢復(fù)。

對(duì)數(shù)據(jù)庫(kù)重要進(jìn)程進(jìn)行監(jiān)控,及時(shí)發(fā)現(xiàn)問題及時(shí)修復(fù)。

總結(jié)

以上是生活随笔為你收集整理的mysql mgr bug_Mysql MGR架构误操作引发的问题处理的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。