| 1 |
connection node_2; |
| 2 |
connection node_1; |
| 3 |
connection node_1; |
| 4 |
CREATE TABLE t1 (f1 INTEGER) Engine=InnoDB; |
| 5 |
INSERT INTO t1 (f1) VALUES (1), (2), (3); |
| 6 |
connection node_2; |
| 7 |
SET GLOBAL wsrep_desync = TRUE; |
| 8 |
SET wsrep_on = FALSE; |
| 9 |
SET SESSION debug_sync = "alter_table_inplace_after_lock_upgrade SIGNAL mdl_locked WAIT_FOR mdl_continue"; |
| 10 |
ALTER TABLE t1 ADD PRIMARY KEY (f1);; |
| 11 |
connect node_2a, 127.0.0.1, root, , test, $NODE_MYPORT_2; |
| 12 |
connection node_2a; |
| 13 |
SET SESSION debug_sync = "now WAIT_FOR mdl_locked"; |
| 14 |
connection node_1; |
| 15 |
INSERT INTO t1(f1) VALUES (11); |
| 16 |
connection node_2a; |
| 17 |
SET debug_sync = "now SIGNAL mdl_continue"; |
| 18 |
SET debug_sync='RESET'; |
| 19 |
connection node_2; |
| 20 |
ERROR 70100: Query execution was interrupted |
| 21 |
SET wsrep_on = TRUE; |
| 22 |
SET GLOBAL wsrep_desync = FALSE; |
| 23 |
connection node_1; |
| 24 |
DROP TABLE t1; |