summaryrefslogtreecommitdiff
path: root/mysql-test/suite/rpl/t/rpl_fail_register.test
blob: d0502e734e2bd9930f2d6469560fdedb7edcf73b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
source include/have_debug.inc;
source include/have_binlog_format_mixed.inc;
source include/master-slave.inc;

connection slave;

set @old_dbug=@@global.debug_dbug;
set global debug_dbug='d,fail_com_register_slave';

stop slave;
reset slave;
source include/wait_for_slave_to_stop.inc;
start slave;
stop slave;
source include/wait_for_slave_to_stop.inc;
set global debug_dbug=@old_dbug;

connection master;

### Dump thread is hanging despite slave has gracefully exited.
let $id=`SELECT id from information_schema.processlist where command='Binlog Dump'`;

if ($id) {
  replace_result $id DUMP_THREAD;
  eval kill $id;
  let $wait_condition= SELECT count(*)=0 from information_schema.processlist where command='Binlog Dump';
  source include/wait_condition.inc;
}

show slave hosts;

connection slave;
start slave;
source include/rpl_end.inc;