Skip to content

Commit fe61e28

Browse files
author
Jan Lindström
committed
MDEV-15810: Test failure on galera.lp1376747 and galera.lp1376747-2
Wait until create table is replicated before continuing.
1 parent 767d6ce commit fe61e28

File tree

5 files changed

+20
-2
lines changed

5 files changed

+20
-2
lines changed

mysql-test/suite/galera/disabled.def

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,5 @@ pxc-421 : MDEV-15804 Test failure on galera.pxc-421
3333
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
36-
galera.lp1376747 : MDEV-15810 Test failure on galera.lp1376747
37-
galera.lp1376747-2 : MDEV-15810 Test failure on galera.lp1376747-2
3836
galera.galera_pc_ignore_sb : MDEV-15811 Test failure on galera_pc_ignore_sb
3937

mysql-test/suite/galera/r/lp1376747-2.result

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
CREATE TABLE t1 (id INT PRIMARY KEY) ENGINE=InnoDB;
22
INSERT INTO t1 VALUES (1);
3+
SELECT NAME FROM INFORMATION_SCHEMA.INNODB_SYS_TABLES WHERE NAME LIKE 'test/t%';
4+
NAME
5+
test/t1
36
FLUSH TABLES t1 FOR EXPORT;
47
ALTER TABLE t1 ADD COLUMN f2 INTEGER;
58
INSERT INTO t1 VALUES (2,3);

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
CREATE TABLE t1 (id INT PRIMARY KEY) ENGINE=InnoDB;
22
INSERT INTO t1 VALUES (1);
3+
SELECT NAME FROM INFORMATION_SCHEMA.INNODB_SYS_TABLES WHERE NAME LIKE 'test/t%';
4+
NAME
5+
test/t1
36
FLUSH TABLES t1 WITH READ LOCK;
47
ALTER TABLE t1 ADD COLUMN f2 INTEGER;
58
INSERT INTO t1 VALUES (2,3);

mysql-test/suite/galera/t/lp1376747-2.test

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ CREATE TABLE t1 (id INT PRIMARY KEY) ENGINE=InnoDB;
55
INSERT INTO t1 VALUES (1);
66

77
--connection node_2
8+
9+
# Wait until above DDL's are replicated
10+
--let $wait_condition = SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.INNODB_SYS_TABLES WHERE NAME LIKE 'test/t%';
11+
--source include/wait_condition.inc
12+
13+
SELECT NAME FROM INFORMATION_SCHEMA.INNODB_SYS_TABLES WHERE NAME LIKE 'test/t%';
14+
815
FLUSH TABLES t1 FOR EXPORT;
916

1017
--connection node_1

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ CREATE TABLE t1 (id INT PRIMARY KEY) ENGINE=InnoDB;
55
INSERT INTO t1 VALUES (1);
66

77
--connection node_2
8+
9+
# Wait until above DDL's are replicated
10+
--let $wait_condition = SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.INNODB_SYS_TABLES WHERE NAME LIKE 'test/t%';
11+
--source include/wait_condition.inc
12+
13+
SELECT NAME FROM INFORMATION_SCHEMA.INNODB_SYS_TABLES WHERE NAME LIKE 'test/t%';
14+
815
FLUSH TABLES t1 WITH READ LOCK;
916

1017
--connection node_1

0 commit comments

Comments
 (0)