Bug #75513 | DROP TABLE creating a stall when foreign keys in use on other tables | ||
---|---|---|---|
Submitted: | 15 Jan 2015 10:20 | Modified: | 8 Jan 2019 12:48 |
Reporter: | Riccardo Pizzi | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S5 (Performance) |
Version: | 5.5.31 | OS: | Linux |
Assigned to: | CPU Architecture: | Any |
[15 Jan 2015 10:20]
Riccardo Pizzi
[11 Dec 2017 0:52]
haochen he
there is comment in src-5.7.17: /* NOTE that if the thread ends up waiting for a lock we will release dict_operation_lock temporarily! But the counter on the table protects the referenced table from being dropped while the check is running. */ i dont know why waiting is necessary but it seems that it does.
[23 Nov 2018 12:56]
MySQL Verification Team
Hi, We are very well aware of the fact that exclusive lock is taken for the table during DROP TABLE and shared lock is taken for the checks being done for foreign keys. Hence, this is the only known solution that will maintain the integrity of both DML and DDL operations. Let us not forget that InnoDB SE is a fully ACID compliant engine. Hence, we can not verify this bug, unless you come with a solution that would perform much faster for these situations.
[24 Dec 2018 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".