Bug #21653 | Mysql appears to hang at bin log file rotation (not every rotation) | ||
---|---|---|---|
Submitted: | 15 Aug 2006 12:06 | Modified: | 26 Aug 2006 10:00 |
Reporter: | Brian Robinson | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 5.0.19 | OS: | Linux (SuSE 10.0) |
Assigned to: | CPU Architecture: | Any | |
Tags: | log file rotation |
[15 Aug 2006 12:06]
Brian Robinson
[18 Aug 2006 13:28]
Brian Robinson
below you can see the end of two binary log files (after having run mysqlbinlog). The first log is from a log file that rotated OK. The second is from a log file that did not rotate OK and the server hung. We could continue to do queries etc - but updates/inserts/deletes etc were prevented (as expected if there is a problem in rotating the log and the log file size has reached max or thereabouts) First Example tail of Log that rotated OK ========================================== # at 104857560 #060817 20:37:56 server id 1 end_log_pos 181 Query thread_id=42310 exec_time=0 error_code=0 SET TIMESTAMP=1155872276; UPDATE FileInfo SET CacheStatus='NNNNNNNN',ThumbnailWidth=0,ThumbnailHeight=0,TnStatus='F' WHERE FileId=445769973; # at 104857741 #060817 20:37:56 server id 1 end_log_pos 104857768 Xid = 61074298 COMMIT; # at 104857768 #060817 20:37:56 server id 1 end_log_pos 104857809 Rotate to mysql01.000538 pos: 4 # End of log file ROLLBACK /* added by mysqlbinlog */; /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; Example tail of Log that DID NOT rotate OK ========================================== SET TIMESTAMP=1155728763; BEGIN; # at 104857594 #060816 4:46:03 server id 1 end_log_pos 114 Query SET TIMESTAMP=1155728763; DELETE FROM CacheRemove WHERE FileId=440834385; # at 104857708 #060816 4:46:03 server id 1 end_log_pos 104857735 COMMIT; # End of log file ROLLBACK /* added by mysqlbinlog */; /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
[23 Aug 2006 18:15]
Andreas Oesterer
Sounds like the same problem that we have experienced for the last 8 months. Bug ID: 20408 http://bugs.mysql.com/?id=20408 I cannot offer you a solution, but a small workaround that might or might not be applicable to your situation: In our experience, a DB server bounce (shutdown/start) rotates the log and never hangs. So we do this once every day and to keep us out of trouble. But any real solution or method to track the problem would be obviously preferred.
[23 Aug 2006 19:01]
Brian Robinson
Thanks Andreas. Its nice to know we are not alone. And your symptoms seem to match ours exactly. High load. Droppng down the size of the bin log does not help (neither does it increase the frequency of the occurrence !!!!) We may move in the next couple of days to 5.0.24 - I'll keep you posted. cheers Brian
[26 Aug 2006 10:00]
Valeriy Kravchuk
Please do not submit the same bug more than once. An existing bug report, bug #20408, already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Because of this, we hope you add your comments to the original bug instead. Thank you for your interest in MySQL.