| 1 |
# Test DDL command aborting clone on failure |
| 2 |
|
| 3 |
--let $CLONE_DATADIR = $MYSQL_TMP_DIR/data_new |
| 4 |
--let $MYSQLD_DATADIR= `select @@datadir;` |
| 5 |
|
| 6 |
SET GLOBAL DEBUG = '+d,clone_ddl_abort_wait_page_copy'; |
| 7 |
SET DEBUG_SYNC = 'clone_page_copy SIGNAL start_ddl WAIT_FOR resume_clone'; |
| 8 |
--source ../include/clone_command_send.inc |
| 9 |
|
| 10 |
--connection con1 |
| 11 |
--echo # In connection CON1 |
| 12 |
SET DEBUG_SYNC = 'now WAIT_FOR start_ddl'; |
| 13 |
SET DEBUG_SYNC = 'clone_notify_ddl_after_state_block SIGNAL resume_clone'; |
| 14 |
|
| 15 |
if ($ddl_error) { |
| 16 |
--error ER_INTERNAL_ERROR |
| 17 |
} |
| 18 |
--eval $ddl_alter_abort |
| 19 |
|
| 20 |
--connection default |
| 21 |
--echo # In connection DEFAULT |
| 22 |
if (!$ddl_error) { |
| 23 |
--error ER_CLONE_DDL_IN_PROGRESS |
| 24 |
} |
| 25 |
--reap |
| 26 |
|
| 27 |
SET GLOBAL DEBUG = '-d,clone_ddl_abort_wait_page_copy'; |
| 28 |
|
| 29 |
--force-rmdir $CLONE_DATADIR |
| 30 |
SET DEBUG_SYNC = 'RESET'; |