Debian Codegraph @

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

raw
1 #
2 # Test that when all the slave options pertaining to slave files
3 # are set in an MSR set up.
4 # The test mainly tests slave config is properly set so that slave
5 # threads start and stop smoothly.
6 #
7
8 #Skip on group replication runs
9 --source include/not_group_replication_plugin.inc
10 # Test requires master-info-repository=TABLE, relay-log-info-repository=TABLE
11 --source include/have_slave_repository_type_table.inc
12
13 --echo #
14 --echo # set up masters server_1 and server_3 with server_2 being a slave.
15 --echo #.
16 --let $rpl_topology= 1->2,3->2,4->2,5->2
17 --let $rpl_multi_source= 1
18 --let $rpl_skip_start_slave=1
19 --source include/rpl_init.inc
20
21 --echo #
22 --echo # On slave, issue start slave/stop slave command. Slave should not
23 --echo # error out anywhere.
24 --echo #
25 --let $rpl_connection_name= server_2
26 --source include/rpl_connection.inc
27
28 START SLAVE SQL_THREAD;
29 #check till sql_thread returned Yes
30 --let $rpl_source_file= include/wait_for_slave_sql_to_start.inc
31 --source include/rpl_for_each_connection.inc
32
33 START SLAVE SQL_THREAD;
34 #check till sql_thread returned Yes
35 --let $rpl_source_file= include/wait_for_slave_sql_to_start.inc
36 --source include/rpl_for_each_connection.inc
37
38 START SLAVE IO_THREAD;
39 #check till sql_thread returned Yes
40 --let $rpl_source_file= include/wait_for_slave_io_to_start.inc
41 --source include/rpl_for_each_connection.inc
42
43 STOP SLAVE;
44 --let $rpl_source_file= include/wait_for_slave_io_to_stop.inc
45 --source include/rpl_for_each_connection.inc
46 --let $rpl_source_file= include/wait_for_slave_sql_to_stop.inc
47 --source include/rpl_for_each_connection.inc
48
49 START SLAVE;
50 --let $rpl_source_file= include/wait_for_slave_io_to_start.inc
51 --source include/rpl_for_each_connection.inc
52 --let $rpl_source_file= include/wait_for_slave_sql_to_start.inc
53 --source include/rpl_for_each_connection.inc
54
55 --let $rpl_skip_sync=1
56 --source include/rpl_end.inc