Skip to content

Commit 76f7aac

Browse files
MDEV-13065 rpl.rpl_mdev-11092 fails sporadically in buildbot
Problem rpl.rpl_mdev-11092 fails in buildbot because after starting slave in wait_for_slave_sql_error_and_skip.inc slave is started but there may be chances that we have not skipped the last error and Last_SQL_Errno is still not zero untill the end of rpl_end.inc , which will compare Last_SQL_Errno to 0. So in this this case rpl_mdev-11092 fails. Solution After starting slave in wait_for_slave_sql_error_and_skip.inc we will wait for Last_SQL_Errno to become 0.
1 parent 59fca58 commit 76f7aac

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

mysql-test/include/wait_for_slave_sql_error_and_skip.inc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,13 @@ if (!$slave_skip_counter) {
6666
}
6767
source include/start_slave.inc;
6868

69+
# start_slave.inc returns when Slave_SQL_Running=Yes. But the slave
70+
# thread sets it before clearing Last_SQL_Errno. So we have to wait
71+
# for Last_SQL_Errno=0 separately.
72+
73+
let $slave_param= Last_SQL_Errno;
74+
let $slave_param_value= 0;
75+
source include/wait_for_slave_param.inc;
6976

7077
--let $include_filename= wait_for_slave_sql_error_and_skip.inc [errno=$slave_sql_errno]
7178
--source include/end_include_file.inc

0 commit comments

Comments
 (0)