Bug #80821 | Replication breaks if multi-table DELETE is used in conjunction with Foreign Key | ||
---|---|---|---|
Submitted: | 22 Mar 2016 11:38 | Modified: | 31 Mar 2016 7:36 |
Reporter: | Philip Stoev | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Row Based Replication ( RBR ) | Severity: | S3 (Non-critical) |
Version: | 5.7, 5.7.11 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[22 Mar 2016 11:38]
Philip Stoev
[31 Mar 2016 7:36]
MySQL Verification Team
Hello Philip, Thank you for the report and test case. Observed this issue with 5.7.11(including 5.7.13 daily build) builds(where as test case passed on 5.6.29 build). Thanks, Umesh
[17 Feb 2018 20:13]
Seweryn Ozog
5.7.18, 5.7.20 as well
[17 Feb 2018 21:09]
Seweryn Ozog
"S3 (Non-critical)" for replication problem - really?
[17 Apr 2019 18:24]
Dmitry Lenev
Posted by developer: Bug #29639837/#94991 "MULTI-TABLE DELETES WITH FOREIGN KEYS TAKE DOWN ALL REPLICAS" has been marked as a duplicate of this one.
[27 Apr 2019 11:34]
Christian Roser
Any news on this? I know it's an old bug but it's still present in the most current 5.7.25 release. Some well known web app like https://civicrm.org/download cause trigger this bug constantly
[16 Jul 2019 8:14]
Zsolt Parragi
Fix for 5.7 (*) I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.
Contribution: replication-57.diff (application/octet-stream, text), 4.73 KiB.
[16 Jul 2019 8:14]
Zsolt Parragi
Fix for 8.0 (*) I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.
Contribution: replication-80.diff (application/octet-stream, text), 5.15 KiB.
[16 Jul 2019 8:16]
Zsolt Parragi
This bug was caused by WL#6987, dbb6e38: before this refactoring, multi-table deletes executed deletes for one table immediately, then delayed the remaining entries. After the refactoring, foreign keys weren't handled. Fix: multi-table deletes fall back to delayed mode when there is a cascade foreign key dependency between the tables.
[16 Jul 2019 8:17]
MySQL Verification Team
Thank you for your contribution. regards, Umesh
[12 Oct 2023 16:31]
Jean-François Gagné
Related: Bug#102586 (that other bug might even be considered a duplicate of this one). Could we mark this bug as also affecting 8.0 and 8.1: it might make it more visible as something important to fix ? I also think this deserves a higher severity than S3: replication breakage is S1 IMHO, and Bug#102586 was accepted as S1.