mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-7241: rpl.rpl_parallel2 fails sporadically in buildbot
There was a race, a small window between updating slave position and updating Seconds_Behind_Master, during which the test case could see the wrong value. Fix by waiting for the expected status to appear.
This commit is contained in:
@ -25,6 +25,13 @@ INSERT INTO t1 VALUES (1,sleep(2));
|
||||
--connection server_2
|
||||
--sync_with_master
|
||||
|
||||
# The slave position (which --sync_with_master waits for) is updated just
|
||||
# before the Seconds_Behind_Master. So we have to wait for the zero status
|
||||
# to appear, otherwise there is a small window between --sync_with_master
|
||||
# and SHOW SLAVE STATUS where we can see a non-zero value.
|
||||
--let $slave_param= Seconds_Behind_Master
|
||||
--let $slave_param_value= 0
|
||||
--source include/wait_for_slave_param.inc
|
||||
--echo Seconds_Behind_Master should be zero here because the slave is fully caught up and idle.
|
||||
--let $status_items= Seconds_Behind_Master
|
||||
--source include/show_slave_status.inc
|
||||
|
Reference in New Issue
Block a user