Bug #43284 | optimize table, not enough free space: no error return, but idles | ||
---|---|---|---|
Submitted: | 1 Mar 2009 3:10 | Modified: | 7 Sep 2009 3:38 |
Reporter: | Ben Bucksch | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Errors | Severity: | S3 (Non-critical) |
Version: | 5.0, 5.1 | OS: | Any (Ubuntu 8.04) |
Assigned to: | CPU Architecture: | Any |
[1 Mar 2009 3:10]
Ben Bucksch
[7 Sep 2009 3:38]
Susanne Ebrecht
Verified as described. I tested with 2 GB table including indexes and just 1 GB space left on disc ... Tested both 5.0 and 5.1. MySQL just hanging ...
[7 Dec 2011 10:16]
Andrew Mason
Confirmed this behaviour, using 5.0.92-rs ("Distributed by Rackspace"). Though my version did not resume operation when space was freed - it just hung forever.
[17 May 2023 11:41]
Stefan Heisl
Hey everyone, I recently encountered Bug #43284 while using the "optimize table" command in MySQL, and I wanted to share my emotions and knowledge on this topic. The issue occurs when there is not enough free disk space for the optimization process to complete. Although MySQL writes about this limitation to the syslog, the SQL command itself doesn't return an error. As a result, the SQL client that issued the command just sits there indefinitely, waiting for the operation to finish, which might never happen if there is no additional free space. In my opinion, it's frustrating when an SQL command fails silently without informing the user. When I execute a command, I anticipate it to return with an error if it cannot complete successfully. Normally, the "optimize table" command provides success and error codes, but unfortunately, not in this particular case. When I issue such a command, I patiently wait for its completion, unaware of any issues unless I actively check the syslog. This state of affairs is like asking someone to go shopping, and they walk away barring saying anything, only to later inform you thru a letter that they couldn't go shopping due to the fact they had to go to school. It's natural to feel frustrated and demand immediate and direct communication rather than finding out through indirect means like syslog, like this https://ecommercefastlane.com/leveraging-the-potential-of-the-metaverse-in-retail-pioneeri...