| 1 |
# |
| 2 |
# codership/galera#414 Shutdown crashes node if the node started with `gcs.max_packet_size=2` |
| 3 |
# |
| 4 |
|
| 5 |
--source include/big_test.inc |
| 6 |
--source include/have_innodb.inc |
| 7 |
--source include/galera_cluster.inc |
| 8 |
|
| 9 |
# Save original auto_increment_offset values. |
| 10 |
--let $node_1=node_1 |
| 11 |
--let $node_2=node_2 |
| 12 |
--source include/auto_increment_offset_save.inc |
| 13 |
|
| 14 |
# We perform the shutdown/restart sequence in here. If there was a crash during shutdown, MTR will detect it |
| 15 |
|
| 16 |
--connection node_2 |
| 17 |
--source include/shutdown_mysqld.inc |
| 18 |
|
| 19 |
--connection node_1 |
| 20 |
SET SESSION wsrep_sync_wait = 0; |
| 21 |
SET SESSION wsrep_on = OFF; |
| 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 |
--connection node_2 |
| 26 |
--source include/start_mysqld.inc |
| 27 |
|
| 28 |
--connection node_1 |
| 29 |
SET SESSION wsrep_on = ON; |
| 30 |
--let $wait_condition = SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size'; |
| 31 |
--source include/wait_condition.inc |
| 32 |
--let $wait_condition = SELECT VARIABLE_VALUE = 'ON' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_ready'; |
| 33 |
--source include/wait_condition.inc |
| 34 |
|
| 35 |
--connection node_1 |
| 36 |
CALL mtr.add_suppression("Failed to set packet size"); |
| 37 |
|
| 38 |
--connection node_2 |
| 39 |
--let $wait_condition = SELECT VARIABLE_VALUE = 'ON' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_ready'; |
| 40 |
--source include/wait_condition.inc |
| 41 |
CALL mtr.add_suppression("Failed to set packet size"); |
| 42 |
|
| 43 |
--source include/auto_increment_offset_restore.inc |