Debian Codegraph @

mysql-test/suite/rpl/t/rpl_fail_register.test

raw
1 source include/have_debug.inc;
2 source include/have_binlog_format_mixed.inc;
3 source include/master-slave.inc;
4
5 connection slave;
6 CALL mtr.add_suppression("Slave I/O: Master command COM_REGISTER_SLAVE failed: Debug Induced Error");
7 set @old_dbug=@@global.debug_dbug;
8 set global debug_dbug='d,fail_com_register_slave';
9
10 stop slave;
11 reset slave;
12 source include/wait_for_slave_to_stop.inc;
13 start slave;
14 # Debug point will raise IO thread error ER_SLAVE_MASTER_COM_FAILURE
15 # so we will wait for that and manually stop the SQL thread
16 --let $slave_io_errno= 1597
17 --source include/wait_for_slave_io_error.inc
18 --source include/stop_slave_sql.inc
19 set global debug_dbug=@old_dbug;
20
21 connection master;
22
23 let $id=`SELECT id from information_schema.processlist where command='Binlog Dump'`;
24
25 if ($id) {
26 replace_result $id DUMP_THREAD;
27 eval kill $id;
28 let $wait_condition= SELECT count(*)=0 from information_schema.processlist where command='Killed';
29 source include/wait_condition.inc;
30 }
31
32 show slave hosts;
33
34 connection slave;
35 start slave;
36 source include/rpl_end.inc;