2016-07-13 12:19:20 +02:00
|
|
|
#
|
|
|
|
# codership/galera#414 Shutdown crashes node if the node started with `gcs.max_packet_size=2`
|
|
|
|
#
|
|
|
|
|
|
|
|
--source include/big_test.inc
|
2016-11-01 22:20:12 +01:00
|
|
|
--source include/have_innodb.inc
|
2016-07-13 12:19:20 +02:00
|
|
|
--source include/galera_cluster.inc
|
|
|
|
|
|
|
|
# We perform the shutdown/restart sequence in here. If there was a crash during shutdown, MTR will detect it
|
|
|
|
|
|
|
|
--connection node_2
|
|
|
|
--source include/shutdown_mysqld.inc
|
|
|
|
|
|
|
|
--connection node_1
|
|
|
|
SET SESSION wsrep_sync_wait = 0;
|
|
|
|
SET SESSION wsrep_on = OFF;
|
|
|
|
--let $wait_condition = SELECT VARIABLE_VALUE = 1 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
|
|
|
|
--source include/wait_condition.inc
|
|
|
|
|
|
|
|
--connection node_2
|
|
|
|
--source include/start_mysqld.inc
|
|
|
|
|
|
|
|
--connection node_1
|
|
|
|
SET SESSION wsrep_on = ON;
|
|
|
|
--let $wait_condition = SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
|
|
|
|
--source include/wait_condition.inc
|
2016-11-05 17:15:14 +01:00
|
|
|
--let $wait_condition = SELECT VARIABLE_VALUE = 'ON' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_ready';
|
|
|
|
--source include/wait_condition.inc
|
2016-07-13 12:19:20 +02:00
|
|
|
|
|
|
|
--connection node_1
|
|
|
|
CALL mtr.add_suppression("Failed to set packet size");
|
|
|
|
|
|
|
|
--connection node_2
|
2016-11-05 17:15:14 +01:00
|
|
|
--let $wait_condition = SELECT VARIABLE_VALUE = 'ON' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_ready';
|
|
|
|
--source include/wait_condition.inc
|
2016-07-13 12:19:20 +02:00
|
|
|
CALL mtr.add_suppression("Failed to set packet size");
|
|
|
|
|