| 1 |
--source include/big_test.inc |
| 2 |
--source include/galera_cluster.inc |
| 3 |
--source include/have_innodb.inc |
| 4 |
|
| 5 |
--let $node_1=node_1 |
| 6 |
--let $node_2=node_2 |
| 7 |
--source include/auto_increment_offset_save.inc |
| 8 |
|
| 9 |
--let $LOG_FILE=$MYSQL_TMP_DIR/galera_node2.log |
| 10 |
--error 0,1 |
| 11 |
--remove_file $LOG_FILE |
| 12 |
|
| 13 |
CREATE TABLE t1 (f1 INT PRIMARY KEY); |
| 14 |
|
| 15 |
--connection node_2 |
| 16 |
|
| 17 |
--echo # Verify that graceful shutdown succeeds... |
| 18 |
--source include/shutdown_mysqld.inc |
| 19 |
|
| 20 |
--connection node_1 |
| 21 |
|
| 22 |
--let $wait_condition = SELECT VARIABLE_VALUE = 1 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size' |
| 23 |
--source include/wait_condition.inc |
| 24 |
|
| 25 |
INSERT INTO t1 VALUES (1); |
| 26 |
INSERT INTO t1 VALUES (2); |
| 27 |
INSERT INTO t1 VALUES (3); |
| 28 |
|
| 29 |
--connection node_2 |
| 30 |
--echo # Start node_2 again... |
| 31 |
--let $restart_noprint=2 |
| 32 |
--let $start_mysqld_params=--log-error=$LOG_FILE |
| 33 |
--source include/start_mysqld.inc |
| 34 |
|
| 35 |
--let $wait_condition = SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size' |
| 36 |
--source include/wait_condition.inc |
| 37 |
|
| 38 |
SELECT * FROM t1; |
| 39 |
|
| 40 |
--let $start_mysqld_params= |
| 41 |
--source include/restart_mysqld.inc |
| 42 |
|
| 43 |
--connection node_1 |
| 44 |
|
| 45 |
--let $wait_condition = SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size' |
| 46 |
--source include/wait_condition.inc |
| 47 |
|
| 48 |
# Confirm that IST took place |
| 49 |
--let $assert_text = rsync IST completed on joiner |
| 50 |
--let $assert_select = rsync IST completed on joiner |
| 51 |
--let $assert_count = 1 |
| 52 |
--let $assert_file = $LOG_FILE |
| 53 |
--let $assert_only_after = Prepared IST receiver for |
| 54 |
--source include/assert_grep.inc |
| 55 |
|
| 56 |
DROP TABLE t1; |
| 57 |
|
| 58 |
--source include/auto_increment_offset_restore.inc |
| 59 |
|
| 60 |
--remove_file $LOG_FILE |