Bug #58826 | auto_increment value reset on table after database server system crash | ||
---|---|---|---|
Submitted: | 8 Dec 2010 18:40 | Modified: | 22 Jan 2011 22:04 |
Reporter: | Kevin Williams | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 5.1.52 | OS: | Linux (sles10 sp3) |
Assigned to: | CPU Architecture: | Any | |
Tags: | auto_increment, crash, innodb, reset |
[8 Dec 2010 18:40]
Kevin Williams
[14 Dec 2010 22:27]
Sveta Smirnova
Thank you for the report. This should be some bad crash. Please send us your error log file.
[18 Dec 2010 21:02]
Kevin Williams
Regretfully, I cannot send logs from this event. I can clarify that the issue only occurs when the mysql daemon is abruptly terminated by a system failure or by simply killing off the daemon with a SIGKILL signal. The interesting thing is that doing a show table create before the event shows the AUTO_INCREMENT in the response. After the event, the same command shows there is no AUTO_INCREMENT in the response. In order to correct this, an update table needs to be executed with an appropriate value for the AUOT_INCREMENT entry, else it gets set to 1. Fortunately, we have a source for the correct value in another table where it is explicitly archived. This is not a mysql crash, rather the system event causes the error. It seems that there is either a missing cached vector for the auto_increment values, or that a transaction replay on restart is incorrect. As I cannot transmit the error logs (which ones are of interest?) what should I be looking for in order to assist you in resolving this event? Again, many thanks for your help.
[20 Dec 2010 13:28]
Sveta Smirnova
Thank you for the feedback. > I can clarify that the issue only occurs when the mysql daemon is abruptly terminated by a system failure or by simply killing off the daemon with a SIGKILL signal. Have you tried forcing InnoDB recovery? See http://dev.mysql.com/doc/refman/5.1/en/forcing-innodb-recovery.html for details
[22 Dec 2010 22:03]
Kevin Williams
No I have not tried the InnoDB recovery. I will do so the next chance I have and let you know how it fared. kevin
[22 Dec 2010 22:04]
Sveta Smirnova
OK. We will wait feedback from you.
[23 Jan 2011 0: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".