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