Skip to content

Commit

Permalink
sporadic failures of rpl.rpl_parallel_sbm
Browse files Browse the repository at this point in the history
the test waits for the event to get stuck on MASTER_DELAY,
but on a slow/overloaded slave the event might pass MASTER_DELAY
before the test starts waiting.

Wait for the event to get stuck on the LOCK TABLES (after MASTER_DELAY),
the event cannot avoid that,
  • Loading branch information
vuvova committed May 5, 2024
1 parent cea083a commit 7a789e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mysql-test/suite/rpl/r/rpl_parallel_sbm.result
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ connection server_2;
LOCK TABLES t1 WRITE;
include/start_slave.inc
connection slave;
# Waiting for replica to resume the delay for the transaction
# Waiting for replica to get blocked by the table lock
# Sleeping 1s to increment SBM
# Ensuring Seconds_Behind_Master increases after sleeping..
# ..done
Expand Down
4 changes: 2 additions & 2 deletions mysql-test/suite/rpl/t/rpl_parallel_sbm.test
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ LOCK TABLES t1 WRITE;
--source include/start_slave.inc

--connection slave
--echo # Waiting for replica to resume the delay for the transaction
--let $wait_condition= SELECT count(*) FROM information_schema.processlist WHERE state LIKE 'Waiting until MASTER_DELAY seconds after master executed event';
--echo # Waiting for replica to get blocked by the table lock
--let $wait_condition= SELECT count(*) FROM information_schema.processlist WHERE state LIKE 'Waiting for table metadata lock';
--source include/wait_condition.inc

--echo # Sleeping 1s to increment SBM
Expand Down

0 comments on commit 7a789e2

Please sign in to comment.