Bug #39013 | rpl.rpl_filter_tables_not_exist failed on pushbuild | ||
---|---|---|---|
Submitted: | 25 Aug 2008 15:51 | Modified: | 6 Feb 2009 12:33 |
Reporter: | Sven Sandberg | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Tests: Replication | Severity: | S7 (Test Cases) |
Version: | 6.0-rpl, 5.1 | OS: | Any |
Assigned to: | Serge Kozlov | CPU Architecture: | Any |
Tags: | pushbuild, rpl_filter_tables_not_exist, test failure |
[25 Aug 2008 15:51]
Sven Sandberg
[29 Dec 2008 21:30]
Serge Kozlov
The test case contains following commands: UPDATE something on master source include/wait_for_slave_sql_error_and_skip.inc; UPDATE something on master source include/wait_for_slave_sql_error_and_skip.inc; UPDATE something on master source include/wait_for_slave_sql_error_and_skip.inc; .... In this case SQL thread will stop with very similar error message for each block and if replication channel works slowly then "wait_for_slave_sql_error_and_skip.inc" will get error from previous block. Fix should sync slave with master before every block and only then try check next block of code.
[29 Dec 2008 21:38]
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/62430 2756 Serge Kozlov 2008-12-30 Bug#39013: Added sync slave with master before every UPDATE on master to make sure that SQL error is not related to previous UPDATE statement.
[19 Jan 2009 13:50]
Serge Kozlov
After discuss with Zhenxing I agreed that my suggestions were wrong. The issue in "source" file "wait_for_slave_sql_error_and_skip.inc". This file does following: wait a sql error; wait stop of slave; set skip counter; start slave; But start slave doesn't clear Last_SQL_Error field so 1st action from this file can be performed successfully for "old" errors too. Therefore the solution changes order of operations: wait stop of slave; check that sql error exists; set skip counter; start slave;
[19 Jan 2009 14: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/63558 2748 Serge Kozlov 2009-01-19 Bug#39013: Fix the order of operation if the primitive. The should to wait a stop of slave and only then check SQL error.
[26 Jan 2009 16:21]
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/64047 2751 Serge Kozlov 2009-01-26 Bug#39013: Fix the order of operation for the primitive wait_for_slave_sql_error_and_skip.inc. It should to wait stop of slave and only then check SQL error.
[6 Feb 2009 11:23]
Serge Kozlov
fixed with bug#37718
[6 Feb 2009 12:33]
Jon Stephens
Changes were in tests only; no end-user changes to document. Closed.