From 416f267a7acc42fd0949b30a54344822b74ed380 Mon Sep 17 00:00:00 2001 From: Elena Stepanova Date: Wed, 19 Nov 2014 14:34:49 +0400 Subject: [PATCH] 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. --- mysql-test/suite/multi_source/simple.test | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mysql-test/suite/multi_source/simple.test b/mysql-test/suite/multi_source/simple.test index c3b7a60448a..6108d3043d5 100644 --- a/mysql-test/suite/multi_source/simple.test +++ b/mysql-test/suite/multi_source/simple.test @@ -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;