|
5 | 5 |
|
6 | 6 | --source include/galera_cluster.inc
|
7 | 7 | --source include/big_test.inc
|
| 8 | +--source include/have_log_bin.inc |
8 | 9 |
|
9 | 10 | SET SESSION wsrep_sync_wait = 0;
|
10 | 11 | CREATE TABLE t1 (f1 INTEGER PRIMARY KEY AUTO_INCREMENT, f2 LONGBLOB) ENGINE=InnoDB;
|
|
93 | 94 |
|
94 | 95 | DELIMITER ;|
|
95 | 96 |
|
| 97 | +--let $wsrep_last_committed_before = `SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME = 'wsrep_last_committed'` |
| 98 | + |
96 | 99 | --connect node_1_insert_simple, 127.0.0.1, root, , test, $NODE_MYPORT_1
|
97 | 100 | --connect node_1_insert_multi, 127.0.0.1, root, , test, $NODE_MYPORT_1
|
98 | 101 | --connect node_1_insert_transaction, 127.0.0.1, root, , test, $NODE_MYPORT_1
|
@@ -124,6 +127,13 @@ DELIMITER ;|
|
124 | 127 |
|
125 | 128 | --connection node_2
|
126 | 129 | SET SESSION wsrep_sync_wait = 0;
|
| 130 | + |
| 131 | +# Make sure that node_2 is not killed while TOIs are applied. |
| 132 | +# Otherwhise we risk that grastate file is marked unsafe, and |
| 133 | +# as a consequence the node cannot rejoin with IST. |
| 134 | +--let $wait_condition = SELECT VARIABLE_VALUE > $wsrep_last_committed_before FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME = 'wsrep_last_committed' |
| 135 | +--source include/wait_condition.inc |
| 136 | + |
127 | 137 | --source include/kill_galera.inc
|
128 | 138 |
|
129 | 139 | --sleep 10
|
@@ -172,9 +182,8 @@ SET SESSION wsrep_sync_wait = 0;
|
172 | 182 | --source include/start_mysqld.inc
|
173 | 183 |
|
174 | 184 | --connection node_1
|
175 |
| ---source include/wait_until_connected_again.inc |
176 |
| ---source include/galera_wait_ready.inc |
177 | 185 | --let $wait_condition = SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
|
| 186 | +--source include/wait_condition.inc |
178 | 187 |
|
179 | 188 | --let $diff_servers = 1 2
|
180 | 189 | --source include/diff_servers.inc
|
|
0 commit comments