Skip to content

Commit 1568950

Browse files
author
Jan Lindström
committed
MDEV-15806: Test failure on galera.galera_parallel_simple
Make sure DDL's (create tables) are replicated before continuing to lock table.
1 parent c4b1a57 commit 1568950

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

mysql-test/suite/galera/disabled.def

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,3 @@ galera_var_retry_autocommit : MDEV-15794 Test failure on galera.galera_var_retry
3131
galera_var_auto_inc_control_on : MDEV-15803 Test failure on galera.galera_var_auto_inc_control_on
3232
pxc-421 : MDEV-15804 Test failure on galera.pxc-421
3333
query_cache : MDEV-15805 Test failure on galera.query_cache
34-
galera_parallel_simple : MDEV-15806 Test failure on galera.galera_parallel_simple

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
CREATE TABLE t1 (id INT) ENGINE=InnoDB;
22
CREATE TABLE t2 (id INT) ENGINE=InnoDB;
33
SET GLOBAL wsrep_slave_threads = 2;
4+
SELECT NAME FROM INFORMATION_SCHEMA.INNODB_SYS_TABLES WHERE NAME LIKE 'test/t%';
5+
NAME
6+
test/t1
7+
test/t2
48
LOCK TABLE t1 WRITE;
59
INSERT INTO t1 VALUES (1);
610
INSERT INTO t2 VALUES (1);

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ CREATE TABLE t2 (id INT) ENGINE=InnoDB;
1313

1414
--connection node_2
1515
SET GLOBAL wsrep_slave_threads = 2;
16+
17+
# Wait until above DDL's are replicated
18+
--let $wait_condition = SELECT COUNT(*) = 2 FROM INFORMATION_SCHEMA.INNODB_SYS_TABLES WHERE NAME LIKE 'test/t%';
19+
--source include/wait_condition.inc
20+
21+
SELECT NAME FROM INFORMATION_SCHEMA.INNODB_SYS_TABLES WHERE NAME LIKE 'test/t%';
22+
1623
LOCK TABLE t1 WRITE;
1724

1825
--connection node_1

0 commit comments

Comments
 (0)