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: Julius Goryavsky <julius.goryavsky@mariadb.com>
This commit is contained in:
Jan Lindström 2024-09-03 09:07:19 +03:00 committed by Julius Goryavsky
parent b2429e2025
commit 0ce5603b86
2 changed files with 20 additions and 0 deletions

View file

@ -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;

View file

@ -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