Bug #115540 | Showing details about metadata deadlock | ||
---|---|---|---|
Submitted: | 8 Jul 2024 9:52 | Modified: | 9 Jul 2024 13:16 |
Reporter: | Yunus UYANIK | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S4 (Feature request) |
Version: | 8.0.37 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | metadata deadlock |
[8 Jul 2024 9:52]
Yunus UYANIK
[8 Jul 2024 10:31]
MySQL Verification Team
Hi Mr. UYANIK, Thank you for your bug report. However, this feature exists for a very long time. Take a look at the Performance Schema, with it's metadata_locks table. Not a bug.
[9 Jul 2024 13:16]
Yunus UYANIK
Thanks for your response, and I agree it's not a bug, but metadata_locks table only showing the time being happening, so it's not useful for dig into like we do have deadlocks log for InnoDB. Do you mean that there is other report like (duplicate) this one?
[9 Jul 2024 13:34]
MySQL Verification Team
Hi Mr. Matonin, Actually that table has all of the info that you require. MDL's do have deadlocks ...... but ...... MDL do not have and can not have all history of what ever happened ..... They are there only for the protection of DDL's against the undesirable changes. They simply have to take as little time as possible, leaving the rest to the transactional engine(s). They also have to be very, very fast, hence ..... if you want to check whether you can run more DDL's or DML's on the same table that is undergoing DDL, you have to query that table more often. Not a bug.