| 1 |
--source include/galera_cluster.inc |
| 2 |
--source include/have_innodb.inc |
| 3 |
--source include/have_debug_sync.inc |
| 4 |
--source include/galera_have_debug_sync.inc |
| 5 |
|
| 6 |
--connect node_1a, 127.0.0.1, root, , test, $NODE_MYPORT_1 |
| 7 |
--connect node_1b, 127.0.0.1, root, , test, $NODE_MYPORT_1 |
| 8 |
set wsrep_sync_wait = 0; |
| 9 |
|
| 10 |
CREATE TABLE t1(a int not null primary key auto_increment, b int) engine=InnoDB; |
| 11 |
INSERT INTO t1 VALUES (1,2); |
| 12 |
|
| 13 |
--connection node_1a |
| 14 |
--let $victim_id = `SELECT CONNECTION_ID()` |
| 15 |
BEGIN; |
| 16 |
UPDATE t1 SET b=3 WHERE a=1; |
| 17 |
|
| 18 |
--connection node_1 |
| 19 |
set debug_sync='wsrep_kill_before_awake_no_mutex SIGNAL before_kill WAIT_FOR continue'; |
| 20 |
--disable_query_log |
| 21 |
--disable_result_log |
| 22 |
--send_eval KILL CONNECTION $victim_id |
| 23 |
--enable_result_log |
| 24 |
--enable_query_log |
| 25 |
|
| 26 |
--connection node_1b |
| 27 |
set debug_sync= 'now WAIT_FOR before_kill'; |
| 28 |
|
| 29 |
--connection node_2 |
| 30 |
UPDATE t1 SET b=7 WHERE a=1; |
| 31 |
|
| 32 |
--connection node_1b |
| 33 |
--let $wait_condition = SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE User = 'system user' AND State LIKE 'Update_rows_log_event%'; |
| 34 |
--source include/wait_condition.inc |
| 35 |
set debug_sync= 'now SIGNAL continue'; |
| 36 |
|
| 37 |
--connection node_1 |
| 38 |
--reap |
| 39 |
DROP TABLE t1; |
| 40 |
SET DEBUG_SYNC= 'RESET'; |