Commit 0ce5603b authored by Jan Lindström's avatar Jan Lindström Committed by Julius Goryavsky

MDEV-33035 : Galera test case MDEV-16509 unstable

Stabilize test by reseting DEBUG_SYNC and add wait_condition
for expected table contents.
Signed-off-by: default avatarJulius Goryavsky <julius.goryavsky@mariadb.com>
parent b2429e20
......@@ -28,6 +28,11 @@ wsrep_last_seen_gtid_do_not_match
1
SET DEBUG_SYNC = "now SIGNAL after_group_continue";
connection node_1;
SELECT * from t1;
f1
1
connection ctrl;
SET DEBUG_SYNC = "RESET";
SET SESSION wsrep_sync_wait = 0;
connection ctrl;
connection node_1;
......@@ -69,6 +74,11 @@ SET DEBUG_SYNC = "now SIGNAL agac_continue_2";
connection node_1a;
connection ctrl;
SET DEBUG_SYNC = "RESET";
SELECT * from t1;
f1
1
2
3
DROP TABLE t1;
disconnect ctrl;
disconnect node_1a;
......
......@@ -58,6 +58,12 @@ SET DEBUG_SYNC = "now SIGNAL after_group_continue";
--connection node_1
--reap
--let $wait_condition = SELECT COUNT(*) = 1 FROM test.t1;
--source include/wait_condition.inc
SELECT * from t1;
--connection ctrl
SET DEBUG_SYNC = "RESET";
#
# Scenario 2: Verify that two INSERTs from two different connections
......@@ -137,6 +143,10 @@ SET DEBUG_SYNC = "now SIGNAL agac_continue_2";
--connection ctrl
SET DEBUG_SYNC = "RESET";
--let $wait_condition = SELECT COUNT(*) = 3 FROM test.t1;
--source include/wait_condition.inc
SELECT * from t1;
DROP TABLE t1;
--disconnect ctrl
......
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