Skip to content

Commit

Permalink
Add description on admin pause ddl jobs and admin resume ddl jobs (
Browse files Browse the repository at this point in the history
  • Loading branch information
dhysum authored Apr 25, 2023
1 parent 9fc1daf commit b4034bf
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ddl-introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,15 @@ absent -> delete only -> write only -> write reorg -> public

- `ADMIN CANCEL DDL JOBS job_id [, job_id]`:用于取消已经提交但未执行完成的 DDL 任务。取消完成后,执行 DDL 任务的 SQL 语句会返回 `ERROR 8214 (HY000): Cancelled DDL job` 错误。

取消一个已经执行完成的 DDL 任务会在 RESULT 列看到 `DDL Job:90 not found` 的错误,表示该任务已从 DDL 等待队列中被移除。
取消一个已经执行完成的 DDL 任务会在 `RESULT` 列看到 `DDL Job:90 not found` 的错误,表示该任务已从 DDL 等待队列中被移除。

- `ADMIN PAUSE DDL JOBS job_id [, job_id]`:用于暂停正在执行的 DDL 任务。执行该命令后,执行 DDL 任务的 SQL 语句体现为正在执行,后台任务暂停执行。(实验特性)

只有处于执行中或仍在等待中的 DDL 任务可以暂停,否则会在 `RESULT` 列看到 `Job 3 can't be paused now`

- `ADMIN RESUME DDL JOBS job_id [, job_id]`:用于恢复已被暂停的 DDL 任务。执行该命令后,执行 DDL 任务的 SQL 语句体现为正在执行,后台任务正常执行。(实验特性)

你只能对暂停状态的 DDL 任务进行恢复操作,否则会在 `RESULT` 列看到 `Job 3 can't be resumed`

## 常见问题

Expand Down

0 comments on commit b4034bf

Please sign in to comment.