Skip to content

Commit 1fd07d2

Browse files
author
Jan Lindström
committed
MDEV-15823: Test failure on galera.galera_var_slave_threads
Wait drop table to be replicated before continuing.
1 parent f932d3f commit 1fd07d2

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

mysql-test/suite/galera/disabled.def

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,3 @@ query_cache : MDEV-15805 Test failure on galera.query_cache
3434
galera.galera_gra_log : MDEV-15808 Test failure on galera.galera_gra_log
3535
galera.MW-44 : MDEV-15809 Test failure on galera.MW-44
3636
galera.galera_pc_ignore_sb : MDEV-15811 Test failure on galera_pc_ignore_sb
37-
galera.galera_var_slave_threads : MDEV-15785 Test failure on galera.galera_var_slave_threads

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ INSERT INTO t1 VALUES (DEFAULT);
109109
INSERT INTO t1 VALUES (DEFAULT);
110110
INSERT INTO t1 VALUES (DEFAULT);
111111
DROP TABLE t1;
112+
SELECT NAME FROM INFORMATION_SCHEMA.INNODB_SYS_TABLES WHERE NAME LIKE 'test/t%';
113+
NAME
112114
SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user' AND STATE LIKE '%wsrep aborter%';
113115
COUNT(*) = 1
114116
1

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,13 @@ INSERT INTO t1 VALUES (DEFAULT);
8888
DROP TABLE t1;
8989

9090
--connection node_2
91+
92+
# Wait until above DDL is replicated
93+
--let $wait_condition = SELECT COUNT(*) = 0 FROM INFORMATION_SCHEMA.INNODB_SYS_TABLES WHERE NAME LIKE 'test/t%';
94+
--source include/wait_condition.inc
95+
96+
SELECT NAME FROM INFORMATION_SCHEMA.INNODB_SYS_TABLES WHERE NAME LIKE 'test/t%';
97+
9198
#
9299
# make sure that we are left with exactly one applier thread before we leaving the test
93100
#

0 commit comments

Comments
 (0)