Commit 7002948b authored by Jan Lindström's avatar Jan Lindström

MDEV-21517 : Galera test galera_sr.GCF-561 failure: Result length mismatch

Add wait conditions.
parent a3f3d40b
......@@ -12,9 +12,9 @@ INSERT INTO t1 VALUES (4, 4);
INSERT INTO t1 VALUES (5, 5);
connection node_2;
SET SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
SELECT COUNT(*) > 0 FROM mysql.wsrep_streaming_log;
COUNT(*) > 0
1
SELECT COUNT(*) AS EXPECT_5 FROM mysql.wsrep_streaming_log;
EXPECT_5
5
ALTER TABLE t1 DROP COLUMN f2;
SELECT COUNT(*) AS EXPECT_0 FROM t1;
EXPECT_0
......
......@@ -20,9 +20,12 @@ INSERT INTO t1 VALUES (5, 5);
--connection node_2
SET SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
--let $wait_condition = SELECT COUNT(*) > 0 FROM t1;
--let $wait_condition = SELECT COUNT(*) = 5 FROM t1;
--source include/wait_condition.inc
--let $wait_condition = SELECT COUNT(*) = 5 FROM mysql.wsrep_streaming_log;
--source include/wait_condition.inc
SELECT COUNT(*) > 0 FROM mysql.wsrep_streaming_log;
SELECT COUNT(*) AS EXPECT_5 FROM mysql.wsrep_streaming_log;
ALTER TABLE t1 DROP COLUMN f2;
......@@ -35,6 +38,8 @@ SELECT COUNT(*) AS EXPECT_0 FROM mysql.wsrep_streaming_log;
--error ER_LOCK_DEADLOCK
INSERT INTO t1 VALUES (6, 6);
--let $wait_condition = SELECT COUNT(*) = 0 FROM mysql.wsrep_streaming_log;
--source include/wait_condition.inc
SELECT COUNT(*) AS EXPECT_0 FROM mysql.wsrep_streaming_log;
# DDL is now in effect
......
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