Skip to content

Commit 93c039d

Browse files
committed
MDEV-8294: Inconsistent behavior of slave parallel threads at runtime
Follow-up patch to temporarily avoid a sporadic failure in the test rpl.rpl_000011 due to MDEV-8301. There is a window during thread exit where the global status is counted incorrectly - the contribution for the exiting thread is counted twice. The patch for MDEV-8294 made this window visible to the test case rpl.rpl_000011, causing it to sporadically fail. Temporarily silence this with a wait for the expected value; can be removed once MDEV-8294 is fixed.
1 parent 682ed00 commit 93c039d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

mysql-test/suite/rpl/t/rpl_000011.test

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ insert into t1 values(1);
1111
sync_slave_with_master;
1212
show global status like 'com_insert';
1313
stop slave;
14+
# Temporary work-around for bug MDEV-8301. There is a small window during
15+
# thread exit where the local status values of a thread are counted twice
16+
# in the global status. Remove this wait_condition.inc once MDEV-8301 is
17+
# fixed.
18+
--let $wait_condition= SELECT variable_value=1 FROM information_schema.global_status WHERE variable_name="Com_insert";
19+
--source include/wait_condition.inc
1420
show global status like 'com_insert';
1521
--source include/wait_for_slave_to_stop.inc
1622
start slave;

0 commit comments

Comments
 (0)