| 1 |
# |
| 2 |
# This test restarts a slave while no updates have been performed on the master. No SST is performed. |
| 3 |
# |
| 4 |
|
| 5 |
--source include/galera_cluster.inc |
| 6 |
--source include/have_innodb.inc |
| 7 |
|
| 8 |
# Save original auto_increment_offset values. |
| 9 |
--let $node_1=node_1 |
| 10 |
--let $node_2=node_2 |
| 11 |
--source include/auto_increment_offset_save.inc |
| 12 |
|
| 13 |
--connection node_1 |
| 14 |
CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB; |
| 15 |
INSERT INTO t1 VALUES (1); |
| 16 |
|
| 17 |
--connection node_2 |
| 18 |
--source include/restart_mysqld.inc |
| 19 |
|
| 20 |
--connection node_1 |
| 21 |
--let $wait_condition = SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size'; |
| 22 |
--source include/wait_condition.inc |
| 23 |
|
| 24 |
--let $galera_connection_name = node_2a |
| 25 |
--let $galera_server_number = 2 |
| 26 |
--source include/galera_connect.inc |
| 27 |
--connection node_2a |
| 28 |
--source include/wait_until_ready.inc |
| 29 |
|
| 30 |
SELECT COUNT(*) = 1 FROM t1; |
| 31 |
SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size'; |
| 32 |
|
| 33 |
DROP TABLE t1; |
| 34 |
|
| 35 |
# Restore original auto_increment_offset values. |
| 36 |
--let $node_2=node_2a |
| 37 |
--source include/auto_increment_offset_restore.inc |
| 38 |
|
| 39 |
--source include/galera_end.inc |