Bug #115857 | Dropping large unused tables on prod with file_per_table_on=1 can cause downtime | ||
---|---|---|---|
Submitted: | 18 Aug 2024 20:46 | Modified: | 6 Dec 2024 17:37 |
Reporter: | Malika Gogia | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Documentation | Severity: | S4 (Feature request) |
Version: | All | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[18 Aug 2024 20:46]
Malika Gogia
[19 Aug 2024 9:52]
MySQL Verification Team
Hi Mr. Gogia, Thank you for your bug report. However, this is not a bug. This is expected behaviour. You have just quoted a single sentence from our Reference Manual. However, dropping a table involves much more than that. You should also read chapters on Data Dictionary, Information Schema and Performance Schema to understand how many operations are involved in dropping a table. Each of these operations also involves a large number of locks. Hence, you should also read a chapter on the Metadata Locks, as well. You should also read a chapter on InnoDB storage engine, as dropping a table involves undo logs as well. Hence, this is much more complicated that what you have cited in your bug report. Last, but not least, there is the operation on physically removing all the files from the filesystem which has it's own locks, independent of MySQL. Not a bug.
[19 Aug 2024 10:06]
MySQL Verification Team
HI Mr. Gogia, We decided to verify this bug as a documentation enhancement. It would be prudent to add more to the above description that you quoted. Verified as a documentation bug.
[6 Dec 2024 17:37]
Malika Gogia
Hi Team, Do we have any update around this?
[9 Dec 2024 10:37]
MySQL Verification Team
hi Mr. Gogia, No, there aer no updates yet.... When the documentation team documents this behaviour, they will update this page with that information.