File: rpl_multi_source_slave_files.test

package info (click to toggle)
mysql-8.0 8.0.43-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,273,924 kB
  • sloc: cpp: 4,684,605; ansic: 412,450; pascal: 108,398; java: 83,641; perl: 30,221; cs: 27,067; sql: 26,594; sh: 24,181; python: 21,816; yacc: 17,169; php: 11,522; xml: 7,388; javascript: 7,076; makefile: 2,194; lex: 1,075; awk: 670; asm: 520; objc: 183; ruby: 97; lisp: 86
file content (56 lines) | stat: -rw-r--r-- 1,852 bytes parent folder | download
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