Skip to content

Commit 30c6ac3

Browse files
philip-galeraNirbhay Choubey
authored andcommitted
Galera MTR Tests: Attempt to fortify galera_kill_ddl.test against sporadic failures
1 parent 0656453 commit 30c6ac3

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,4 @@ ALTER TABLE t1 ADD COLUMN f2 INTEGER;
55
SELECT COUNT(*) = 2 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME='t1';
66
COUNT(*) = 2
77
1
8-
SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
9-
VARIABLE_VALUE = 2
10-
1
118
DROP TABLE t1;

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,13 @@ ALTER TABLE t1 ADD COLUMN f2 INTEGER;
2828
--source include/galera_connect.inc
2929
--connection node_2a
3030

31+
--let $wait_condition = SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
32+
--source include/wait_condition.inc
33+
34+
--let $wait_condition = SELECT VARIABLE_VALUE = 'Primary' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_status';
35+
--source include/wait_condition.inc
36+
3137
SELECT COUNT(*) = 2 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME='t1';
32-
SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
3338

3439
--connection node_1
3540
--disable_query_log

0 commit comments

Comments
 (0)