Bug #96414 | CREATE TABLE events in wrong order in a binary log. | ||
---|---|---|---|
Submitted: | 2 Aug 2019 13:17 | Modified: | 7 Aug 2019 13:24 |
Reporter: | Iwo P | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S3 (Non-critical) |
Version: | 5.7, 5.7.27 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[2 Aug 2019 13:17]
Iwo P
[7 Aug 2019 13:24]
MySQL Verification Team
Hello Iwo P, Thank you for the report and test case. Verified as described with patched 5.7.27 source build. regards, Umesh
[7 Aug 2019 13:26]
MySQL Verification Team
Test results - 5.7.27
Attachment: 96414_5.7.27.results (application/octet-stream, text), 248.94 KiB.
[7 Aug 2019 13:27]
MySQL Verification Team
- Haven't checked other GAs, shall do it tomorrow or later on
[12 Aug 2019 12:24]
Dmitry Lenev
Posted by developer: Note that the problem is not repeatable in modern 8.0 versions (I've used 8.0.18-git) to verify. This is thanks to WL#6049 "Meta-data locking for FOREIGN KEY tables" which was introduced in release 8.0.3. The second CREATE TABLE statement now acquires metadata lock on parent table in FK so has to wait until the first CREATE TABLE completes (since the latter holds conflicting MDL on it).
[25 Jun 2020 7:45]
Przemyslaw Malkowski
I think it is a general problem of non atomic DDLs, and a duplicate of https://bugs.mysql.com/bug.php?id=58787 ?