Commit 7dc4ea56 authored by Kristian Nielsen's avatar Kristian Nielsen

Fix sporadic test failure in rpl.rpl_create_drop_event

Depending on timing, an extra event run could start just when the event
scheduler is shut down and delay running until after the table has been
dropped; this would cause the test to fail with a "table does not exist"
error in the log.
Signed-off-by: default avatarKristian Nielsen <knielsen@knielsen-hq.org>
parent 33854d73
...@@ -14,6 +14,12 @@ SET GLOBAL event_scheduler=on; ...@@ -14,6 +14,12 @@ SET GLOBAL event_scheduler=on;
let $wait_condition= SELECT count(*)>0 FROM t1; let $wait_condition= SELECT count(*)>0 FROM t1;
--source include/wait_condition.inc --source include/wait_condition.inc
SET GLOBAL event_scheduler=off; SET GLOBAL event_scheduler=off;
# If the time rolls to the next whole second just at this point, a new event
# run may be scheduled. Wait for this to disappear, otherwise we see occasional
# test failures if the table gets dropped before the extra event run completes.
# Expect 5 connections: default, master, master1, server_1, binlog dump thread
--let $wait_condition= SELECT COUNT(*) = 5 FROM INFORMATION_SCHEMA.PROCESSLIST;
--source include/wait_condition.inc
SELECT DISTINCT a FROM t1; SELECT DISTINCT a FROM t1;
DELETE FROM t1; DELETE FROM t1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment