Bug #67202 | GTID replication fails when first binlog file is purged | ||
---|---|---|---|
Submitted: | 12 Oct 2012 9:42 | Modified: | 29 Oct 2012 12:46 |
Reporter: | Petr Medonos | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S2 (Serious) |
Version: | 5.6.7 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | GTID, purge, replication |
[12 Oct 2012 9:42]
Petr Medonos
[12 Oct 2012 11:41]
Sveta Smirnova
Thank you for the report. I can not repeat described behavior. Please provide your configuration files for both master and slave.
[12 Oct 2012 13:41]
Petr Medonos
Master config file
Attachment: master-my.cnf (application/octet-stream, text), 1.96 KiB.
[12 Oct 2012 13:41]
Petr Medonos
Slave config file
Attachment: slave-my.cnf (application/octet-stream, text), 1.92 KiB.
[12 Oct 2012 15:44]
Petr Medonos
Only workaround I currently found is to stop master and slave, clear all binary logs and index files and then run CHANGE MASTER TO ... MASTER_AUTO_POSITION = 1; start slave.
[12 Oct 2012 17:32]
Sveta Smirnova
Thank you for the feedback. Verified as described.
[12 Oct 2012 17:33]
Sveta Smirnova
test case for MTR
Attachment: rpl_bug67202.test (application/octet-stream, text), 759 bytes.
[12 Oct 2012 17:33]
Sveta Smirnova
master option file
Attachment: rpl_bug67202-master.opt (application/octet-stream, text), 78 bytes.
[29 Oct 2012 12:46]
Jon Stephens
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release. If necessary, you can access the source repository and build the latest available version, including the bug fix. More information about accessing the source trees is available at http://dev.mysql.com/doc/en/installing-source.html
[29 Oct 2012 12:48]
Jon Stephens
Fixed in 5.6+. Fix should appear in 5.6.9.
[10 Jan 2014 7:48]
lalit Choudhary
mysql 5.6.15 GTID replication 'Got fatal error 1236 from master when reading data from binary log' I Checked SHOW SLAVE STATUS error is "'Got fatal error 1236 from master when reading data from binary log: ''The slave is connecting using CHANGE MASTER TO MASTER_AUTO_POSITION = 1, but the master has purged binary logs containing GTIDs that the slave requires.'' i am suspecting it happens because of master old binary log (7 days before) deleted form master as we are using expire_logs_days=7 option and slave still looking for this old binary log for some GTID reference to replicate with master. I tried following link solution , http://www.mysqlperformanceblog.com/2013/02/08/how-to-createrestore-a-slave-using-gtid-rep... but it still not working. Note :using mysql 5.6.15 Now only option for me to re-create slave by taking mysqldump from master. Is there any other option if we can start replication without recreating new slave. Thanks in Advance