Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support showing all currently running jobs when executing "admin show ddl" #7274

Merged
merged 3 commits into from
Aug 7, 2018

Conversation

zimulala
Copy link
Contributor

@zimulala zimulala commented Aug 3, 2018

What have you changed? (mandatory)

In PR #6955, we put AddIndex jobs in another queue. But the admin show ddl only lookup jobs in the default job queue. So if the current running DDL jobs is an AddIndex operation, the result of admin show ddl would be empty.
This PR fixes this issue. admin show ddl would check both the default job queue and the add index job queue.

What is the type of the changes? (mandatory)

  • Improvement (non-breaking change which is an improvement to an existing feature)

How has this PR been tested? (mandatory)

Yes

Does this PR affect documentation (docs/docs-cn) update? (mandatory)

No.

Does this PR affect tidb-ansible update? (mandatory)

No.

Does this PR need to be added to the release notes? (mandatory)

No.

Refer to a related PR or issue link (optional)

Benchmark result if necessary (optional)

Add a few positive/negative examples (optional)

@zimulala zimulala added the sig/execution SIG execution label Aug 3, 2018
@zimulala
Copy link
Contributor Author

zimulala commented Aug 3, 2018

/run-all-tests

@shenli
Copy link
Member

shenli commented Aug 5, 2018

The title and description are not consistent.

@zimulala zimulala changed the title Support showing currently running jobs when executing "admin show ddl" Support showing all currently running jobs when executing "admin show ddl" Aug 6, 2018
@zimulala
Copy link
Contributor Author

zimulala commented Aug 6, 2018

@shenli
Done.

Copy link
Contributor

@crazycs520 crazycs520 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@crazycs520 crazycs520 added the status/LGT1 Indicates that a PR has LGTM 1. label Aug 6, 2018
@zimulala
Copy link
Contributor Author

zimulala commented Aug 7, 2018

PTAL @winkyao @ciscoxll

Copy link
Contributor

@ciscoxll ciscoxll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@ciscoxll ciscoxll added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Aug 7, 2018
@zimulala zimulala merged commit 3a3845f into pingcap:master Aug 7, 2018
@zimulala zimulala deleted the show-ddl branch August 7, 2018 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/execution SIG execution status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants