| 1 |
connection node_2; |
| 2 |
connection node_1; |
| 3 |
connect con1,127.0.0.1,root,,test,$NODE_MYPORT_1; |
| 4 |
--- CTAS with empty result set --- |
| 5 |
CREATE TABLE t1 (a INT) ENGINE=InnoDB; |
| 6 |
SET DEBUG_SYNC = 'create_table_select_before_create SIGNAL may_run WAIT_FOR bf_abort'; |
| 7 |
CREATE TABLE t2 SELECT * FROM t1; |
| 8 |
connection node_1; |
| 9 |
SET DEBUG_SYNC = 'now WAIT_FOR may_run'; |
| 10 |
TRUNCATE TABLE t1; |
| 11 |
connection con1; |
| 12 |
ERROR 70100: Query execution was interrupted |
| 13 |
SET DEBUG_SYNC = 'RESET'; |
| 14 |
--- CTAS with non-empty result set --- |
| 15 |
INSERT INTO t1 VALUES (10), (20), (30); |
| 16 |
SET DEBUG_SYNC = 'create_table_select_before_create SIGNAL may_run WAIT_FOR bf_abort'; |
| 17 |
CREATE TABLE t2 SELECT * FROM t1; |
| 18 |
connection node_1; |
| 19 |
SET DEBUG_SYNC = 'now WAIT_FOR may_run'; |
| 20 |
TRUNCATE TABLE t1; |
| 21 |
connection con1; |
| 22 |
ERROR 70100: Query execution was interrupted |
| 23 |
SET DEBUG_SYNC = 'RESET'; |
| 24 |
DROP TABLE t1; |
| 25 |
disconnect con1; |
| 26 |
disconnect node_2; |
| 27 |
disconnect node_1; |