Bug #38170 | rpl_variables failed on pushbuild: could not sync with master | ||
---|---|---|---|
Submitted: | 16 Jul 2008 13:34 | Modified: | 1 Oct 2008 14:23 |
Reporter: | Sven Sandberg | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Tests: Replication | Severity: | S7 (Test Cases) |
Version: | 5.1-rpl | OS: | Any |
Assigned to: | Sven Sandberg | CPU Architecture: | Any |
Tags: | could not sync slave with master, pushbuild, rpl_variables, test failure |
[16 Jul 2008 13:34]
Sven Sandberg
[17 Jul 2008 14:34]
Sven Sandberg
The reason for the failure is that the test sets @@global.init_slave to some garbage value. The test executes START SLAVE before it modifies @@global.init_slave. This causes a race between the client thread that modifies @@global.init_slave and the slave SQL thread. With high probability, the old value of @@global.init_slave was used, which is ok. But the slave stops if the new (garbage) value of @@global.init_slave is used. In the test, the actual value of @@global.init_slave is insignificant, the only thing that matters is that it is different from the value on master. Therefore, we can fix the test case by setting @@global.init_slave to valid SQL.
[17 Jul 2008 16: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/49950 2703 Sven Sandberg 2008-07-17 BUG#38170: rpl_variables failed on pushbuild: could not sync with master Problem: the test set @@global.init_slave to garbage at a time which was not guaranteed to be after the time when the slave's SQL thread used it. That would cause the slave's SQL thread to stop in rare cases. Fix: The test does not care about the value of @@global.init_slave, except that it should be different on master and slave. Hence, we set @@global.init_slave to something that is valid SQL.
[18 Jul 2008 11:31]
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/50023 2704 Sven Sandberg 2008-07-18 BUG#38178: rpl_loaddata_map fails sporadically in pushbuild Problem: master binlog has 'create table t1'. Master binlog was removed before slave could replicate it. In test's cleanup code, master did 'drop table t1', which caused slave sql thread to stop with an error since slave sql thread did not know about t1. Fix: t1 is just an auxiliary construction, only needed on master. Hence, we turn off binlogging before t1 is created, drop t1 as soon as we don't need it anymore, and then turn on binlogging again.
[18 Jul 2008 11:31]
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/50024 2704 Sven Sandberg 2008-07-18 BUG#38178: rpl_loaddata_map fails sporadically in pushbuild Problem: master binlog has 'create table t1'. Master binlog was removed before slave could replicate it. In test's cleanup code, master did 'drop table t1', which caused slave sql thread to stop with an error since slave sql thread did not know about t1. Fix: t1 is just an auxiliary construction, only needed on master. Hence, we turn off binlogging before t1 is created, drop t1 as soon as we don't need it anymore, and then turn on binlogging again.
[14 Aug 2008 7:17]
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/51600 2677 He Zhenxing 2008-08-14 [merge] Merge with mysql-5.1-rpl-testfixes
[15 Aug 2008 2:02]
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/51688 2769 He Zhenxing 2008-08-15 [merge] Merge 6.0-rpl-testfixes -> 6.0
[19 Aug 2008 19:56]
Bugs System
Pushed into 6.0.7-alpha (revid:sven@mysql.com-20080717162659-b7p6joq1zu1255ov) (version source revid:sven@mysql.com-20080818175803-c1nutd5773r6b4gd) (pib:3)
[19 Aug 2008 20:30]
Paul DuBois
Test case changes. No changelog entry needed. Setting report to Patch Queued pending push of fix into 5.1.x.
[25 Aug 2008 21:05]
Chuck Bell
Released in 6.0.7
[27 Aug 2008 1:17]
Paul DuBois
Setting report to NDI pending push into 5.1.x.
[28 Aug 2008 20:17]
Bugs System
Pushed into 6.0.7-alpha (revid:cbell@mysql.com-20080822132131-uveo6wiuecy6m2b8) (version source revid:cbell@mysql.com-20080822132131-uveo6wiuecy6m2b8) (pib:3)
[29 Aug 2008 0:43]
Paul DuBois
Setting report to NDI pending push into 5.1.x.
[14 Sep 2008 1:24]
Bugs System
Pushed into 6.0.7-alpha (revid:sven@mysql.com-20080717162659-b7p6joq1zu1255ov) (version source revid:vvaintroub@mysql.com-20080804094710-jb2qpqxpf2ir2gf3) (pib:3)
[16 Sep 2008 4:25]
Paul DuBois
Setting report to NDI pending push into 5.1.x.