Skip to content

Commit 40d0b64

Browse files
committed
MDEV-21421 : Galera test sporadic failure on galera.galera_as_slave_gtid_myisam: Result length mismatch
Add wait_condition so that drop table has time to replicate to Galera cluster.
1 parent 0dee57c commit 40d0b64

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

mysql-test/suite/galera/r/galera_as_slave_gtid_myisam.result

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ gtid_binlog_state_equal
2323
#cleanup
2424
connection node_1;
2525
DROP TABLE t1;
26+
connection node_2;
27+
connection node_3;
28+
connection node_1;
2629
reset master;
2730
connection node_2;
2831
STOP SLAVE;

mysql-test/suite/galera/t/galera_as_slave_gtid_myisam.test

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,16 @@ SELECT COUNT(*) = 0 FROM t1;
5555
--echo #cleanup
5656
--connection node_1
5757
DROP TABLE t1;
58+
59+
--connection node_2
60+
--let $wait_condition = SELECT COUNT(*) = 0 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 't1';
61+
--source include/wait_condition.inc
62+
63+
--connection node_3
64+
--let $wait_condition = SELECT COUNT(*) = 0 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 't1';
65+
--source include/wait_condition.inc
66+
67+
--connection node_1
5868
reset master;
5969

6070
--connection node_2

0 commit comments

Comments
 (0)