Commit 6a63204c authored by Andrei's avatar Andrei

MDEV-34029 rpl.rpl_heartbeat can fail when (BB) mtr reorders tests

rpl.rpl_heartbeat turns out to miss a standard include/master-slave
header which made it potentially in BB and actually with manual mtr
failing as it may have used a previous slave GTID state.

Fixed with installing the standard rpl suite header/footer in the
test file.
parent ec09c034
connect master,localhost,root,,test,$MASTER_MYPORT,$MASTER_MYSOCK; include/master-slave.inc
connect slave,localhost,root,,test,$SLAVE_MYPORT,$SLAVE_MYSOCK; [connection master]
connection master; connection master;
reset master; reset master;
connection slave; connection slave;
include/stop_slave.inc
set @restore_slave_net_timeout= @@global.slave_net_timeout; set @restore_slave_net_timeout= @@global.slave_net_timeout;
set @@global.slave_net_timeout= 10; set @@global.slave_net_timeout= 10;
change master to master_host='127.0.0.1',master_port=MASTER_PORT, master_user='root'; change master to master_host='127.0.0.1',master_port=MASTER_PORT, master_user='root';
...@@ -68,5 +69,5 @@ connection master; ...@@ -68,5 +69,5 @@ connection master;
drop table t1; drop table t1;
connection slave; connection slave;
set @@global.slave_net_timeout= @restore_slave_net_timeout; set @@global.slave_net_timeout= @restore_slave_net_timeout;
include/stop_slave.inc include/rpl_end.inc
End of tests End of tests
...@@ -8,14 +8,13 @@ ...@@ -8,14 +8,13 @@
# - SHOW STATUS like 'Slave_heartbeat_period' report # - SHOW STATUS like 'Slave_heartbeat_period' report
-- source include/have_log_bin.inc -- source include/have_log_bin.inc
-- source include/master-slave.inc
connect (master,localhost,root,,test,$MASTER_MYPORT,$MASTER_MYSOCK);
connect (slave,localhost,root,,test,$SLAVE_MYPORT,$SLAVE_MYSOCK);
connection master; connection master;
reset master; reset master;
connection slave; connection slave;
-- source include/stop_slave.inc
set @restore_slave_net_timeout= @@global.slave_net_timeout; set @restore_slave_net_timeout= @@global.slave_net_timeout;
--disable_warnings --disable_warnings
set @@global.slave_net_timeout= 10; set @@global.slave_net_timeout= 10;
...@@ -170,6 +169,5 @@ set @@global.slave_net_timeout= @restore_slave_net_timeout; ...@@ -170,6 +169,5 @@ set @@global.slave_net_timeout= @restore_slave_net_timeout;
--disable_prepare_warnings --disable_prepare_warnings
--source include/stop_slave.inc --source include/rpl_end.inc
--echo End of tests --echo End of tests
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