Bug #64505 | MySQL Slave crashes upon restart | ||
---|---|---|---|
Submitted: | 1 Mar 2012 6:33 | Modified: | 23 Mar 2012 9:23 |
Reporter: | Emmanuel KARTMANN | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S1 (Critical) |
Version: | 5.5.21 | OS: | Windows (Windows Server 2008 R2) |
Assigned to: | CPU Architecture: | Any | |
Tags: | crash, slave, start |
[1 Mar 2012 6:33]
Emmanuel KARTMANN
[1 Mar 2012 7:11]
Valeriy Kravchuk
Please, check if the same problem still happens with a newer version on slave, 5.5.21.
[1 Mar 2012 9:46]
Emmanuel KARTMANN
Ok I will check if crash occurs with latest version, but this could take some time, since it's a production system and we need to test version 5.5.21 before upgrading...
[2 Mar 2012 6:49]
Emmanuel KARTMANN
After upgrade to 5.5.21, the SLAVE has crashed tonight. Any hint on how to debug/trace this crash? E.
[3 Mar 2012 8:26]
Valeriy Kravchuk
Can you try to get the exact statement (from master's binary log and/or from the relay log) that slave was processing when crashed? Had you got the same stack trace with 5.5.21 as with 5.5.16? Please, send my.ini file content from both master and slave. Attach also the entire error log from slave, compressed, if possible.
[9 Mar 2012 15:31]
Emmanuel KARTMANN
SLAVE: my.ini, binary log, error log
Attachment: SLAVE.7z (application/octet-stream, text), 2.91 KiB.
[9 Mar 2012 15:33]
Emmanuel KARTMANN
I attached the SLAVE information, but even when the slave crashed, we had no explicit "crash" in the error log (?). Note that the crash occurs when we automatically restart the slave, when there may be some replication activity going on (thus the crash is not occuring 100% of the time).
[9 Mar 2012 15:47]
Emmanuel KARTMANN
We upgraded SLAVE first to version 5.5.21 - it crashed. We then upgraded MASTER to version 5.5.21 - slave did crashed.
[9 Mar 2012 19:09]
Sveta Smirnova
Thank you for the feedback. How do you automatically restart the slave? Which command do you use?
[9 Mar 2012 20:22]
Emmanuel KARTMANN
A scheduled task does stop the slave in two steps: mysqladmin.exe shutdown net stop mysql If the first command fails, it executes the second. Then the scheduled task rotate the log files (on windows we can't rotate logs while MySQL is running...).
[10 Mar 2012 11:54]
Sveta Smirnova
Thank you for the feedback. > A scheduled task does stop the slave in two steps: > mysqladmin.exe shutdown > net stop mysql > >If the first command fails, it executes the second. Interesting why mysqladmin fails, but net stop should not crash server anyway. > Then the scheduled task rotate the log files (on windows we can't rotate logs while MySQL is running...). Do you mean relay log files? If so how do you rotate them? Have you tried to run STOP SLAVE before shutting down MySQL server?
[23 Mar 2012 8:44]
Emmanuel KARTMANN
I got it : we have hit Bug #61450 (Fix for bug #47103 have not been backported into 5.5 series). We have a merge table that get updated every night, and it crashes the MySQL SLAVE (if we don't update that particular table, there IS NO CRASH). You can mark this bug as a replicate of #61450.
[23 Mar 2012 9:23]
Valeriy Kravchuk
Duplicate of Bug #61450.