Bug #59925 | Table optimize fails to rebuild index after a bulk delete for large tables | ||
---|---|---|---|
Submitted: | 3 Feb 2011 17:50 | Modified: | 25 Apr 2012 15:38 |
Reporter: | Yuriy Demchenko | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server: MyISAM storage engine | Severity: | S2 (Serious) |
Version: | 5.5.8 | OS: | Linux (tested on fedora fc11 64 bit) |
Assigned to: | CPU Architecture: | Any | |
Tags: | myisam_sort_buffer_size, optimize fails |
[3 Feb 2011 17:50]
Yuriy Demchenko
[11 Mar 2011 19:47]
Sveta Smirnova
Thank you for the report. > Can it be when myisam_sort_buffer_size is 4gb or larger, mysql can not evaluate properly if index is larger and it should use temporary files for sorting? Correct. See bug #45702 for details. Can you confirm you don't have same problem with smaller myisam_sort_buffer_size?
[12 Mar 2011 0:04]
Yuriy Demchenko
Yes, I confirmed that it works fine for both 5.1 and 5.5 for buffer size < 4gb. I am running my databases with 3Gb stable.
[12 Mar 2011 0:10]
Yuriy Demchenko
One more thing, bug #45702 indicates that an improper sorting mechanism being used. In this case, it looks like "repair with key cache" is used properly, but it fails to complete!
[30 Aug 2011 18:08]
Kevin Kwast
This bug hit us in a big way. With myisam_sort_buffer_size over 4 GB, the MyISAM OPTIMIZE TABLE destroyed our indexes. Worst of all, the tables didn't go offline due to the problem, they remained available but with empty indexes that made data inaccessible and allowed inserts that resulted in unique key collisions. This is definitely a serious bug..
[25 Mar 2012 15:38]
Valeriy Kravchuk
As that other potentially related bug is finally fixed in 5.5.22, please, check if 5.5.22 solves the problem for you.
[26 Apr 2012 1: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".