mariadb/mysql-test/suite
unknown e8e20954e6 BUG#29046: rpl_stm_mystery22 unstable
Problem: rpl_stm_mystery22 is unstable.

Reason: At one place, the test case *should* wait until the SQL thread on the
slave receives an error, but instead it waits until the SQL thread stops. The
SQL thread may stop before the error flag is set, so that when the test case
continues to execute, the error flag is not set.

Fix: Introduce the subroutine mysql-test/include/wait_for_slave_sql_error.inc,
which waits until there is an error in the sql thread of the slave.

Re-commit: fixed one logical error and two smaller things noted by Mats.


mysql-test/suite/rpl/t/rpl_stm_mystery22.test:
  Use the new wait_for_slave_sql_error.inc instead of wait_for_slave_to_stop.
  There may be a delay from when the slave stops to when Last_SQL_Errno is set,
  so it is not safe to merely wait until the slave stops.
mysql-test/include/wait_for_slave_sql_error.inc:
  New BitKeeper file ``mysql-test/include/wait_for_slave_sql_error.inc''
  This is a subroutine that waits until the sql thread on the slave receives an
  error, as indicated by Last_SQL_Errno in "SHOW SLAVE STATUS".
2007-10-10 18:10:54 +02:00
..
binlog Merge lthalmann@bk-internal.mysql.com:/home/bk/mysql-5.1-new-rpl 2007-09-17 14:14:02 +02:00
funcs_1 Post merge fix 2 for 2007-08-29 21:36:45 +02:00
funcs_2 Updated to result files for cluster tests for version 5.1.21 2007-08-08 17:16:26 -07:00
im Move instance manager tests to it's own suite 2007-08-29 19:02:33 +02:00
jp Many files: 2005-01-07 14:32:05 +02:00
large_tests Bug#27029 alter table ... enable keys crashes mysqld on large table 2007-06-21 12:45:56 -04:00
ndb Merge mysql.com:/home/gluh/MySQL/Merge/5.1 2007-09-19 14:09:23 +05:00
ndb_team moving these tests to suite ndb_team 2007-09-05 19:13:36 +02:00
parts Bug #30412 and Bug #30413 2007-08-27 14:12:12 -06:00
rpl BUG#29046: rpl_stm_mystery22 unstable 2007-10-10 18:10:54 +02:00
rpl_ndb Merge mysql.com:/home/gluh/MySQL/Merge/5.1 2007-09-19 14:09:23 +05:00
stress Additional tests checking for symptoms observed within 2007-07-13 18:32:22 +02:00