66--source include/galera_cluster.inc
77--source include/have_innodb.inc
88
9+ call mtr.add_suppression("WSREP: gcs/src/gcs_core.cpp:core_handle_uuid_msg\\(\\).*");
10+
911CREATE TABLE t1 (f1 INTEGER);
1012
1113# Force all nodes to become non-primary
1214--connection node_1
1315SET GLOBAL wsrep_provider_options = 'gmcast.isolate=1';
1416
1517--connection node_2
18+ SET SESSION wsrep_sync_wait=0;
19+ --let $wait_condition = SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size'
20+ --source include/wait_condition.inc
21+
1622SET GLOBAL wsrep_provider_options = 'gmcast.isolate=1';
1723
1824--connect node_3, 127.0.0.1, root, , test, $NODE_MYPORT_3
1925--connection node_3
20- SET GLOBAL wsrep_provider_options = 'gmcast.isolate=1';
26+ SET SESSION wsrep_sync_wait=0;
27+ --let $wait_condition = SELECT VARIABLE_VALUE = 1 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size'
28+ --source include/wait_condition.inc
2129
22- --sleep 10
30+ SET GLOBAL wsrep_provider_options = 'gmcast.isolate=1';
2331
2432# Node #2 should be non-primary
2533SET SESSION wsrep_sync_wait = 0;
@@ -44,7 +52,7 @@ INSERT INTO t1 VALUES (1);
4452# Reconnect all nodes
4553--connection node_2
4654SET GLOBAL wsrep_provider_options = 'gmcast.isolate=0';
47- --sleep 10
55+
4856--source include/wait_until_connected_again.inc
4957--let $wait_condition = SELECT VARIABLE_VALUE = 'Primary' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_status';
5058--source include/wait_condition.inc
@@ -67,7 +75,7 @@ SET GLOBAL wsrep_provider_options = 'gmcast.isolate=0';
6775
6876--connection node_3
6977SET GLOBAL wsrep_provider_options = 'gmcast.isolate=0';
70- --sleep 10
78+
7179--source include/wait_until_connected_again.inc
7280--let $wait_condition = SELECT VARIABLE_VALUE = 'Primary' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_status';
7381--source include/wait_condition.inc
0 commit comments