断重启从库故障:电Last_Error: Slave failed to initialize relay log info structure from the repository

断电重启故障

2017-11-10T21:27:52.791849+08:00 0 [ERROR] Error in Log_event::read_log_event(): 'read error', data_len: 68, event_type: 2
2017-11-10T21:27:52.791889+08:00 0 [Warning] Error reading GTIDs from relaylog: -1
2017-11-10T21:27:52.793147+08:00 0 [Note] Slave: MTS group recovery relay log info based on Worker-Id 1, group_relay_log_name /home/mysql57/relay/relay-bin.000083, group_relay_log_pos 95280470 group_master_log_name mysql-bin.000048, group_master_log_pos 95280257
2017-11-10T21:27:52.793191+08:00 0 [ERROR] Error looking for file after /home/mysql57/relay/relay-bin.000084.
2017-11-10T21:27:52.793405+08:00 0 [ERROR] Failed to initialize the master info structure
2017-11-10T21:27:52.793414+08:00 0 [ERROR] Failed to create or recover replication info repositories.
2017-11-10T21:27:52.793417+08:00 0 [Note] Check error log for additional messages. You will not be able to start replication until the issue is resolved and the server restarted.
2017-11-10T21:27:52.842687+08:00 0 [Note] Event Scheduler: Loaded 0 events
2017-11-10T21:27:52.842824+08:00 0 [Note] /usr/local/mysql/bin/mysqld: ready for connections.
Version: '5.7.9-log' socket: '/home/mysql57/run/mysql.sock' port: 3306 Source distribution
2017-11-10T21:28:06.755717+08:00 0 [Note] InnoDB: Buffer pool(s) load completed at 171110 21:28:06
2017-11-10T21:38:12.848189+08:00 732 [ERROR] Slave SQL for channel '': Slave failed to initialize relay log info structure from the repository, Error_code: 1872bug

 

#########bug导致:

https://bugs.mysql.com/bug.php?id=83713 

修复:保存好从库位点信息

reset  slave  ; 

start slave;   

#####################

 

Last_Errno: 1594
Last_Error: Relay log read failure: Could not parse relay log event entry. The possible reasons are: the master's binary log is corrupted (you can check this by running 'mysqlbinlog' on the binary log), the slave's relay log is corrupted (you can check this by running 'mysqlbinlog' on the relay log), a network problem, or a bug in the master's or slave's MySQL code. If you want to check the master's binary log or slave's relay log, you will be able to know their names by issuing 'SHOW SLAVE STATUS' on this slave.

 #################

修复:

stop slave;

reset slave;

start slave;

#################

 

posted on 2017-11-10 22:16  星期六男爵  阅读(1096)  评论(0编辑  收藏  举报

导航