Commit bca366e4 authored by Yuchen Pei's avatar Yuchen Pei

MDEV-34098 source start_slave.inc in spider suites

The spider suite should --source include/start_slave.inc to make sure
the slave is up before proceeding.
parent 89084c2e
...@@ -8,6 +8,7 @@ child3_1 ...@@ -8,6 +8,7 @@ child3_1
child3_2 child3_2
child3_3 child3_3
for slave1_1 for slave1_1
include/start_slave.inc
drop and create databases drop and create databases
connection master_1; connection master_1;
......
...@@ -8,6 +8,7 @@ child3_1 ...@@ -8,6 +8,7 @@ child3_1
child3_2 child3_2
child3_3 child3_3
for slave1_1 for slave1_1
include/start_slave.inc
drop and create databases drop and create databases
connection master_1; connection master_1;
......
...@@ -8,6 +8,7 @@ child3_1 ...@@ -8,6 +8,7 @@ child3_1
child3_2 child3_2
child3_3 child3_3
for slave1_1 for slave1_1
include/start_slave.inc
drop and create databases drop and create databases
connection master_1; connection master_1;
......
...@@ -8,6 +8,7 @@ child3_1 ...@@ -8,6 +8,7 @@ child3_1
child3_2 child3_2
child3_3 child3_3
for slave1_1 for slave1_1
include/start_slave.inc
drop and create databases drop and create databases
connection master_1; connection master_1;
......
...@@ -19,7 +19,7 @@ if (!$SLAVE1_1_SLAVE_STATUS) ...@@ -19,7 +19,7 @@ if (!$SLAVE1_1_SLAVE_STATUS)
MASTER_PORT = $MASTER_1_MYPORT MASTER_PORT = $MASTER_1_MYPORT
; ;
} }
START SLAVE; --source include/start_slave.inc
--connection master_1 --connection master_1
call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT"); call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT");
--connection slave1_1 --connection slave1_1
......
...@@ -5,6 +5,7 @@ child2_2 ...@@ -5,6 +5,7 @@ child2_2
child2_3 child2_3
for child3 for child3
for slave1_1 for slave1_1
include/start_slave.inc
connection slave1_1; connection slave1_1;
connection master_1; connection master_1;
set @old_binlog_format= @@binlog_format; set @old_binlog_format= @@binlog_format;
......
...@@ -5,6 +5,7 @@ child2_2 ...@@ -5,6 +5,7 @@ child2_2
child2_3 child2_3
for child3 for child3
for slave1_1 for slave1_1
include/start_slave.inc
connection slave1_1; connection slave1_1;
connection master_1; connection master_1;
set @old_binlog_format= @@binlog_format; set @old_binlog_format= @@binlog_format;
......
...@@ -5,6 +5,7 @@ child2_2 ...@@ -5,6 +5,7 @@ child2_2
child2_3 child2_3
for child3 for child3
for slave1_1 for slave1_1
include/start_slave.inc
connection slave1_1; connection slave1_1;
SHOW VARIABLES LIKE 'slave_transaction_retry_errors'; SHOW VARIABLES LIKE 'slave_transaction_retry_errors';
......
...@@ -5,6 +5,7 @@ child2_2 ...@@ -5,6 +5,7 @@ child2_2
child2_3 child2_3
for child3 for child3
for slave1_1 for slave1_1
include/start_slave.inc
connection slave1_1; connection slave1_1;
set @old_spider_slave_trx_isolation= @@spider_slave_trx_isolation; set @old_spider_slave_trx_isolation= @@spider_slave_trx_isolation;
set global spider_slave_trx_isolation= 1; set global spider_slave_trx_isolation= 1;
......
...@@ -5,6 +5,7 @@ child2_2 ...@@ -5,6 +5,7 @@ child2_2
child2_3 child2_3
for child3 for child3
for slave1_1 for slave1_1
include/start_slave.inc
connection slave1_1; connection slave1_1;
SHOW VARIABLES LIKE 'slave_transaction_retry_errors'; SHOW VARIABLES LIKE 'slave_transaction_retry_errors';
......
...@@ -8,6 +8,7 @@ child3_1 ...@@ -8,6 +8,7 @@ child3_1
child3_2 child3_2
child3_3 child3_3
for slave1_1 for slave1_1
include/start_slave.inc
drop and create databases drop and create databases
connection master_1; connection master_1;
......
...@@ -8,6 +8,7 @@ child3_1 ...@@ -8,6 +8,7 @@ child3_1
child3_2 child3_2
child3_3 child3_3
for slave1_1 for slave1_1
include/start_slave.inc
drop and create databases drop and create databases
connection master_1; connection master_1;
......
...@@ -8,6 +8,7 @@ child3_1 ...@@ -8,6 +8,7 @@ child3_1
child3_2 child3_2
child3_3 child3_3
for slave1_1 for slave1_1
include/start_slave.inc
drop and create databases drop and create databases
connection master_1; connection master_1;
......
...@@ -8,6 +8,7 @@ child3_1 ...@@ -8,6 +8,7 @@ child3_1
child3_2 child3_2
child3_3 child3_3
for slave1_1 for slave1_1
include/start_slave.inc
drop and create databases drop and create databases
connection master_1; connection master_1;
......
...@@ -19,7 +19,7 @@ if (!$SLAVE1_1_SLAVE_STATUS) ...@@ -19,7 +19,7 @@ if (!$SLAVE1_1_SLAVE_STATUS)
MASTER_PORT = $MASTER_1_MYPORT MASTER_PORT = $MASTER_1_MYPORT
; ;
} }
START SLAVE; --source include/start_slave.inc
--connection master_1 --connection master_1
call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT"); call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT");
--connection slave1_1 --connection slave1_1
......
...@@ -8,6 +8,7 @@ child3_1 ...@@ -8,6 +8,7 @@ child3_1
child3_2 child3_2
child3_3 child3_3
for slave1_1 for slave1_1
include/start_slave.inc
connection slave1_1; connection slave1_1;
set @old_spider_slave_trx_isolation= @@spider_slave_trx_isolation; set @old_spider_slave_trx_isolation= @@spider_slave_trx_isolation;
set global spider_slave_trx_isolation= 1; set global spider_slave_trx_isolation= 1;
......
...@@ -8,6 +8,7 @@ child3_1 ...@@ -8,6 +8,7 @@ child3_1
child3_2 child3_2
child3_3 child3_3
for slave1_1 for slave1_1
include/start_slave.inc
drop and create databases drop and create databases
connection master_1; connection master_1;
......
...@@ -8,6 +8,7 @@ child3_1 ...@@ -8,6 +8,7 @@ child3_1
child3_2 child3_2
child3_3 child3_3
for slave1_1 for slave1_1
include/start_slave.inc
drop and create databases drop and create databases
connection master_1; connection master_1;
......
...@@ -8,6 +8,7 @@ child3_1 ...@@ -8,6 +8,7 @@ child3_1
child3_2 child3_2
child3_3 child3_3
for slave1_1 for slave1_1
include/start_slave.inc
drop and create databases drop and create databases
connection master_1; connection master_1;
......
...@@ -8,6 +8,7 @@ child3_1 ...@@ -8,6 +8,7 @@ child3_1
child3_2 child3_2
child3_3 child3_3
for slave1_1 for slave1_1
include/start_slave.inc
drop and create databases drop and create databases
connection master_1; connection master_1;
......
...@@ -19,7 +19,7 @@ if (!$SLAVE1_1_SLAVE_STATUS) ...@@ -19,7 +19,7 @@ if (!$SLAVE1_1_SLAVE_STATUS)
MASTER_PORT = $MASTER_1_MYPORT MASTER_PORT = $MASTER_1_MYPORT
; ;
} }
START SLAVE; --source include/start_slave.inc
--connection master_1 --connection master_1
call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT"); call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT");
--connection slave1_1 --connection slave1_1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment