• unknown's avatar
    BUG#29046: rpl_stm_mystery22 unstable · 3b605031
    unknown authored
    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".
    3b605031
rpl_stm_mystery22.test 2.09 KB