Bug #25917 | MySQL master won't update mysql-bin.index. | ||
---|---|---|---|
Submitted: | 29 Jan 2007 14:25 | Modified: | 13 Apr 2007 6:25 |
Reporter: | Jason Williams | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S2 (Serious) |
Version: | 5.0.27-debug | OS: | Solaris (Solaris 10 (X64 & SPARC)) |
Assigned to: | CPU Architecture: | Any |
[29 Jan 2007 14:25]
Jason Williams
[29 Jan 2007 14:45]
Jason Williams
Tried to CHANGE MASTER back to "mysql-bin.000001", and now the slave is reporting it can't find that log either (same 1236 error). Master report no problems to its own error log.
[29 Jan 2007 14:53]
Jason Williams
Doing a RESET SLAVE, followed by CHANGE MASTER with MASTER_LOG_FILE specified to mysql-bin.000001 cause same 1236 error. However, doing a RESET SLAVE, followed by CHANGE MASTER without MASTER_LOG_FILE specified, causes slave to start replication at mysql-bin.000001. This causes slave to break replication because of duplicate entry errors. Using SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1000000000; to skip forward seems to move through logs files. Seeing how far this can go.
[29 Jan 2007 14:59]
Jason Williams
Purged MASTER LOGS to 'mysql-bin.000014' on master, and then ran RESET SLAVE, followed by CHANGE MASTER without MASTER_LOG_FILE on slave; This caused slave to start replication at 'mysql-bin.000014'. PURGE MASTER LOGS on master DID NOT update mysql-bin.index on master. Still has all logs files (as edited) up through mysql-bin.000015.
[29 Jan 2007 15:12]
Jason Williams
Figured out what happened at time of initial replication break. We have been doing "FLUSH LOGS" once a day since the 22nd, except on the weekends. The last log created when we flushed was mysql-bin.000013 on Friday. Today at the time of the replication break (where the slave reset to mysql-bin.000001 and since couldn't find logs IF specified in CHANGE MASTER), the master rolled the log on its own to mysql-bin.000014 because .000013 had hit the max size for an individual log. So the reproduction sequence appears to be do a FLUSH LOGS on the master, and then let the new log file grow large enough such that MySQL will roll it on its own. At this point, the slave will lose its brain and reset to .000001 or whatever it thinks is the first log in the sequence.
[30 Jan 2007 11:28]
Valeriy Kravchuk
Thank you for a detailed bug report. Please, send your my.cnf from both master and slave, just for completeness.
[30 Jan 2007 22:18]
Jason Williams
Master my.cnf
Attachment: my.cnf (application/octet-stream, text), 20.63 KiB.
[30 Jan 2007 22:20]
Jason Williams
Slave my.cnf
Attachment: my.cnf (application/octet-stream, text), 20.61 KiB.
[30 Jan 2007 22:21]
Jason Williams
Hi Valeriy, Please find attached to the case master and slave my.cnf files. Thank you for reviewing this!
[12 Mar 2007 11:50]
Valeriy Kravchuk
Sorry for a delay with this bug report. Please, try to use a newer version, 5.0.37, and check if you can repeat the same incorrect behaviour.
[12 Mar 2007 18:54]
Jason Williams
Hi Valeriy, I will attempt to check this. Thank you for the response.
[13 Mar 2007 6:25]
Valeriy Kravchuk
Please, inform about any results.
[13 Apr 2007 23:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".