| 1 |
# |
| 2 |
# Confirm that with two nodes, killing one causes the other to stop accepting |
| 3 |
# connections. |
| 4 |
# The pc.ignore_sb=true wsrep_provider option is tested in the galera_kill_* |
| 5 |
# tests. |
| 6 |
# |
| 7 |
|
| 8 |
--source include/galera_cluster.inc |
| 9 |
--source include/have_innodb.inc |
| 10 |
|
| 11 |
# Save original auto_increment_offset values. |
| 12 |
--let $node_1=node_1 |
| 13 |
--let $node_2=node_2 |
| 14 |
--source include/auto_increment_offset_save.inc |
| 15 |
|
| 16 |
--connection node_1 |
| 17 |
--let $wsrep_cluster_address_orig = `SELECT @@wsrep_cluster_address` |
| 18 |
|
| 19 |
--connection node_2 |
| 20 |
--source include/kill_galera.inc |
| 21 |
|
| 22 |
--connection node_1 |
| 23 |
SET SESSION lock_wait_timeout= 3; |
| 24 |
--error ER_LOCK_WAIT_TIMEOUT |
| 25 |
CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB; |
| 26 |
|
| 27 |
# Reset the master and restart the slave so that post-test checks can run |
| 28 |
--connection node_2 |
| 29 |
--source include/start_mysqld.inc |
| 30 |
--source include/wait_until_connected_again.inc |
| 31 |
|
| 32 |
--let $wait_condition = SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size' |
| 33 |
--source include/wait_condition.inc |
| 34 |
|
| 35 |
--connect node_2a, 127.0.0.1, root, , test, $NODE_MYPORT_2 |
| 36 |
--source include/wait_until_connected_again.inc |
| 37 |
|
| 38 |
# Restore original auto_increment_offset values. |
| 39 |
--let $node_2=node_2a |
| 40 |
--source include/auto_increment_offset_restore.inc |
| 41 |
|
| 42 |
--connection node_1 |
| 43 |
call mtr.add_suppression("WSREP: TO isolation error timeout_error for : test.t1"); |
| 44 |
call mtr.add_suppression("WSREP: CREATE TABLE isolation failure"); |
| 45 |
|
| 46 |
--source include/galera_end.inc |