| Bug #39675 | rename tables on innodb tables with pending transactions causes slave data issue | ||
|---|---|---|---|
| Submitted: | 26 Sep 2008 17:48 | Modified: | 27 Jul 12:51 |
| Reporter: | Raj Thukral | ||
| Status: | Closed | ||
| Category: | Server: Replication | Severity: | S1 (Critical) |
| Version: | 5.0.51a, 4.1, 5.0, 5.1, 6.0 bzr | OS: | Any |
| Assigned to: | Jon Olav Hauglid | Target Version: | |
| Tags: | rename table, innodb, binlog order, replication data integrity | ||
| Triage: | Triaged: D2 (Serious) / R4 (High) / E5 (Major) | ||
[26 Sep 2008 17:48]
Raj Thukral
[27 Sep 2008 9:04]
Shane Bester
i wonder if this is related to bug #989 ?
[27 Sep 2008 17:47]
Sveta Smirnova
Thank you for the report. Verified as described. Test case for our test suite: --source include/master-slave.inc --source include/have_innodb.inc CREATE TABLE `raj` ( `id` int(11) NOT NULL auto_increment, `b` int(11) default NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `raj_next` ( `id` int(11) NOT NULL auto_increment, `b` int(11) default NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB; insert into raj (b) values (1),(2),(3); begin; insert into raj(b) values (4); connect (addconroot, localhost, root,,); connection addconroot; rename table raj to raj_backup, raj_next to raj; connection master; commit; select * from raj; select * from raj_backup; sleep 1; connection slave; select * from raj; select * from raj_backup;
[27 Sep 2008 19:11]
Davi Arnaut
Will be fixed by WL#4284
[27 Jun 19:12]
Konstantin Osipov
Jon Olav, please add the test case and close the bug (fixed in scope of Bug#989)
[29 Jun 11:41]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/77435 2812 Jon Olav Hauglid 2009-06-29 Bug #39675 rename tables on innodb tables with pending transactions causes slave data issue Bug was already fixed as part of patch for Bug#989. Test case added to rename.test.
[1 Jul 10:22]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/77621 2812 Jon Olav Hauglid 2009-07-01 Bug #39675 rename tables on innodb tables with pending transactions causes slave data issue Bug was already fixed as part of patch for Bug#989. Test case added to rpl_innodb.test.
[1 Jul 10:46]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/77626 2812 Jon Olav Hauglid 2009-07-01 Bug #39675 rename tables on innodb tables with pending transactions causes slave data issue Bug was already fixed as part of patch for Bug#989 (If DROP TABLE while there's an active transaction, wrong binlog order) Test case added to rpl_innodb.test.
[2 Jul 11:41]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/77752 2812 Jon Olav Hauglid 2009-07-02 Bug #39675 rename tables on innodb tables with pending transactions causes slave data issue Bug was already fixed as part of patch for Bug#989 (If DROP TABLE while there's an active transaction, wrong binlog order) Test case added to rpl_innodb.test.
[23 Jul 12:24]
Bugs System
Pushed into 5.4.4-alpha (revid:alik@sun.com-20090723102221-ps4uaphwbxzj8p0q) (version source revid:jon.hauglid@sun.com-20090706071401-fmmqttomxw0v0gjd) (merge vers: 5.4.4-alpha) (pib:11)
[27 Jul 12:51]
Jon Stephens
Documented fix in the 5.4.4 and 6.0.11 changelogs. See Bug #989 for details.
[12 Aug 23:53]
Paul DuBois
Noted in 5.4.2 changelog because next 5.4 version will be 5.4.2 and not 5.4.4.
[15 Aug 0:47]
Paul DuBois
Ignore previous comment about 5.4.2.
