| 1 |
connection node_2; |
| 2 |
connection node_1; |
| 3 |
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY); |
| 4 |
connection node_1; |
| 5 |
SET SESSION wsrep_trx_fragment_size = 1; |
| 6 |
START TRANSACTION; |
| 7 |
SET debug_sync = "ha_write_row_end SIGNAL write_row_end WAIT_FOR write_row_continue"; |
| 8 |
INSERT INTO t1 VALUES (1);; |
| 9 |
connect node_ctrl, 127.0.0.1, root, , test, $NODE_MYPORT_1; |
| 10 |
connection node_ctrl; |
| 11 |
SET debug_sync = "now WAIT_FOR write_row_end"; |
| 12 |
SET GLOBAL debug_dbug = '+d,wsrep_streaming_rollback'; |
| 13 |
connect node_1a, 127.0.0.1, root, , test, $NODE_MYPORT_1; |
| 14 |
connection node_1a; |
| 15 |
TRUNCATE TABLE t1;; |
| 16 |
connection node_ctrl; |
| 17 |
SET SESSION debug_sync = "now WAIT_FOR wsrep_streaming_rollback_reached"; |
| 18 |
SET SESSION wsrep_sync_wait = 0; |
| 19 |
SET debug_sync = "now SIGNAL write_row_continue"; |
| 20 |
SET SESSION debug_sync = "now SIGNAL wsrep_streaming_rollback_continue"; |
| 21 |
connection node_1a; |
| 22 |
connection node_1; |
| 23 |
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction |
| 24 |
connection node_ctrl; |
| 25 |
SET GLOBAL debug_dbug = ""; |
| 26 |
SET DEBUG_SYNC = 'RESET'; |
| 27 |
DROP TABLE t1; |