| 1 |
# |
| 2 |
# This test kill -9-s a slave while small updates have been performed on the master. |
| 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 |
|
| 15 |
# Enable the master to continue running during the split-brain situation that |
| 16 |
# occurs when the slave is killed |
| 17 |
--let $wsrep_provider_options_orig = `SELECT @@wsrep_provider_options` |
| 18 |
SET GLOBAL wsrep_provider_options = 'pc.ignore_sb=true'; |
| 19 |
|
| 20 |
CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB; |
| 21 |
|
| 22 |
--connection node_2 |
| 23 |
--source include/kill_galera.inc |
| 24 |
|
| 25 |
--connection node_1 |
| 26 |
INSERT INTO t1 VALUES (1); |
| 27 |
|
| 28 |
--connection node_2 |
| 29 |
--source include/start_mysqld.inc |
| 30 |
|
| 31 |
--let $galera_connection_name = node_2a |
| 32 |
--let $galera_server_number = 2 |
| 33 |
--source include/galera_connect.inc |
| 34 |
--connection node_2a |
| 35 |
|
| 36 |
SELECT COUNT(*) FROM t1; |
| 37 |
SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size'; |
| 38 |
|
| 39 |
--connection node_1 |
| 40 |
--disable_query_log |
| 41 |
--eval SET GLOBAL wsrep_provider_options = '$wsrep_provider_options_orig'; |
| 42 |
--enable_query_log |
| 43 |
|
| 44 |
--let $node_2=node_2a |
| 45 |
--source include/auto_increment_offset_restore.inc |
| 46 |
|
| 47 |
DROP TABLE t1; |