| 1 |
connection node_2; |
| 2 |
connection node_1; |
| 3 |
connection node_1; |
| 4 |
connection node_2; |
| 5 |
connection node_1; |
| 6 |
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY, f2 CHAR(255)) Engine=InnoDB; |
| 7 |
SET GLOBAL wsrep_slave_threads = 2; |
| 8 |
SET GLOBAL DEBUG_DBUG = "d,sync.wsrep_apply_cb"; |
| 9 |
connection node_2; |
| 10 |
INSERT INTO t1 VALUES (1, 'node_2');; |
| 11 |
connect node_1a, 127.0.0.1, root, , test, $NODE_MYPORT_1; |
| 12 |
connection node_1a; |
| 13 |
SET SESSION wsrep_sync_wait=0; |
| 14 |
SET DEBUG_SYNC = "now WAIT_FOR sync.wsrep_apply_cb_reached"; |
| 15 |
connection node_1; |
| 16 |
SET SESSION wsrep_sync_wait = 0; |
| 17 |
SET SESSION wsrep_retry_autocommit = 0; |
| 18 |
INSERT INTO t1 VALUES (1, 'node_1');; |
| 19 |
connection node_1a; |
| 20 |
SET GLOBAL DEBUG_DBUG = ""; |
| 21 |
SET DEBUG_SYNC = "now SIGNAL signal.wsrep_apply_cb"; |
| 22 |
connection node_1; |
| 23 |
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction |
| 24 |
connection node_2; |
| 25 |
connection node_2; |
| 26 |
connection node_1; |
| 27 |
SET SESSION wsrep_sync_wait = 0; |
| 28 |
Performing --wsrep-recover ... |
| 29 |
connection node_2; |
| 30 |
Using --wsrep-start-position when starting mysqld ... |
| 31 |
connection node_1; |
| 32 |
DROP TABLE t1; |
| 33 |
SET GLOBAL wsrep_slave_threads = DEFAULT; |
| 34 |
connection node_1a; |
| 35 |
SET GLOBAL DEBUG_DBUG=NULL; |
| 36 |
SET DEBUG_SYNC = "RESET"; |