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 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
|
#
# Test that when all the slave options pertaining to slave files
# are set in an MSR set up.
# The test mainly tests slave config is properly set so that slave
# threads start and stop smoothly.
#
#Skip on group replication runs
--source include/not_group_replication_plugin.inc
# Test requires master-info-repository=TABLE, relay-log-info-repository=TABLE
--source include/have_slave_repository_type_table.inc
--echo #
--echo # set up masters server_1 and server_3 with server_2 being a slave.
--echo #.
--let $rpl_topology= 1->2,3->2,4->2,5->2
--let $rpl_multi_source= 1
--let $rpl_skip_start_slave=1
--source include/rpl_init.inc
--echo #
--echo # On slave, issue start slave/stop slave command. Slave should not
--echo # error out anywhere.
--echo #
--let $rpl_connection_name= server_2
--source include/rpl_connection.inc
START SLAVE SQL_THREAD;
#check till sql_thread returned Yes
--let $rpl_source_file= include/wait_for_slave_sql_to_start.inc
--source include/rpl_for_each_connection.inc
START SLAVE SQL_THREAD;
#check till sql_thread returned Yes
--let $rpl_source_file= include/wait_for_slave_sql_to_start.inc
--source include/rpl_for_each_connection.inc
START SLAVE IO_THREAD;
#check till sql_thread returned Yes
--let $rpl_source_file= include/wait_for_slave_io_to_start.inc
--source include/rpl_for_each_connection.inc
STOP SLAVE;
--let $rpl_source_file= include/wait_for_slave_io_to_stop.inc
--source include/rpl_for_each_connection.inc
--let $rpl_source_file= include/wait_for_slave_sql_to_stop.inc
--source include/rpl_for_each_connection.inc
START SLAVE;
--let $rpl_source_file= include/wait_for_slave_io_to_start.inc
--source include/rpl_for_each_connection.inc
--let $rpl_source_file= include/wait_for_slave_sql_to_start.inc
--source include/rpl_for_each_connection.inc
--let $rpl_skip_sync=1
--source include/rpl_end.inc
|