| 1 |
## KILL DDL command while waiting for clone |
| 2 |
|
| 3 |
--let $CON_ID= `SELECT CONNECTION_ID()` |
| 4 |
|
| 5 |
SET DEBUG_SYNC = 'clone_notify_ddl SIGNAL kill_ddl'; |
| 6 |
--send_eval $ddl_stmt |
| 7 |
|
| 8 |
--connection con1 |
| 9 |
--echo # In connection CON1 |
| 10 |
|
| 11 |
--echo # Waiting for DDL to reach notification |
| 12 |
SET DEBUG_SYNC = 'now WAIT_FOR kill_ddl'; |
| 13 |
--echo # Wait finished |
| 14 |
|
| 15 |
--replace_result $CON_ID CON_ID |
| 16 |
--eval KILL QUERY $CON_ID |
| 17 |
|
| 18 |
--connection con2 |
| 19 |
--echo # In connection CON2 |
| 20 |
|
| 21 |
if (!$no_interrupt) { |
| 22 |
--echo # Waiting for DDL to exit with error |
| 23 |
--error ER_QUERY_INTERRUPTED |
| 24 |
--reap |
| 25 |
} |
| 26 |
|
| 27 |
--echo # Query should no longer be interrupted and should pass |
| 28 |
if ($no_interrupt) { |
| 29 |
--reap |
| 30 |
} |
| 31 |
|
| 32 |
--echo # Wait finished |
| 33 |
SET DEBUG_SYNC = 'RESET'; |