Skip to content

Commit 7793432

Browse files
author
Jan Lindström
authored
Merge pull request #722 from codership/MDEV-16006
MDEV-16006 Fix test galera_kill_nochanges
2 parents 2cdaa56 + dfb1fda commit 7793432

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB;
22
INSERT INTO t1 VALUES (1);
33
Killing server ...
4+
SET SESSION wsrep_sync_wait = 0;
5+
SET SESSION wsrep_sync_wait = DEFAULT;
46
SELECT COUNT(*) = 1 FROM t1;
57
COUNT(*) = 1
68
1

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ INSERT INTO t1 VALUES (1);
1111

1212
--connection node_2
1313
--source include/kill_galera.inc
14+
15+
--connection node_1
16+
SET SESSION wsrep_sync_wait = 0;
17+
--let $wait_condition = SELECT VARIABLE_VALUE = 'non-Primary' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_status'
18+
--source include/wait_condition.inc
19+
SET SESSION wsrep_sync_wait = DEFAULT;
20+
21+
--connection node_2
1422
--source include/start_mysqld.inc
1523

1624
--let $galera_connection_name = node_2a

0 commit comments

Comments
 (0)