Debian Codegraph @

mysql-test/suite/rpl/t/show_status_stop_slave_race-7126.test

raw
1 #
2 # MDEV-7126 replication slave - deadlock in terminate_slave_thread with stop slave and show variables of replication filters and show global status
3 #
4 --source include/master-slave.inc
5
6 --disable_query_log
7 call mtr.add_suppression("Master is configured to log replication events");
8 call mtr.add_suppression("Could not read packet:.* errno: 11");
9 --enable_query_log
10
11 --connection slave
12
13
14 # If everything is okay, the test will end in several seconds; maybe a minute.
15 # If the problem shows up, it will hang until testcase timeout is exceeded.
16 --exec $MYSQL_SLAP --silent --host=127.0.0.1 -P $SLAVE_MYPORT -q "START SLAVE; STOP SLAVE; SHOW GLOBAL STATUS" -c 2 --number-of-queries=100 --create-schema=test
17
18 # All done.
19
20 --connection slave
21 # The parallel START SLAVE can leave an error condition if the last START was
22 # aborted by the master due to conflicting server_id from multiple connections.
23 --let $rpl_allow_error= 1
24 --source include/wait_for_slave_to_stop.inc
25 --source include/start_slave.inc
26
27 --connection master
28 --source include/rpl_end.inc