mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
MDEV-7074 multi_source.simple test fails in buildbot
The problem is that the binlog position is updated before Executed_log_entries and Slave_SQL_State. So, it's possible to hit the moment when MASTER_POS_WAIT (and hence sync_with_master) already returned success, but Slave_SQL_State and Executed_log_entries were not modified yet. Fixing it by adding a wait on the expected Executed_log_entries value.
This commit is contained in:
parent
154ec0f420
commit
416f267a7a
1 changed files with 7 additions and 0 deletions
|
@ -33,6 +33,13 @@ set default_master_connection = '';
|
|||
--connection slave
|
||||
--sync_with_master 0,'slave2'
|
||||
|
||||
# MDEV-7074 (Sporadic test failure due to a race condition)
|
||||
let $show_statement = SHOW ALL SLAVES STATUS;
|
||||
let $field = Executed_log_entries;
|
||||
let $condition = = 7;
|
||||
let $wait_for_all = 1;
|
||||
--source include/wait_show_condition.inc
|
||||
|
||||
--replace_result $SERVER_MYPORT_1 MYPORT_1 $SERVER_MYPORT_2 MYPORT_2
|
||||
show all slaves status;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue