-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
sql: implement SHOW BR JOBS <n:int>
and CANCEL BR JOB <n:int>
#43074
Conversation
Signed-off-by: hillium <yujuncen@pingcap.com>
Signed-off-by: hillium <yujuncen@pingcap.com>
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
Signed-off-by: hillium <yujuncen@pingcap.com>
Signed-off-by: hillium <yujuncen@pingcap.com>
/retest-required |
Signed-off-by: hillium <yujuncen@pingcap.com>
Signed-off-by: hillium <yujuncen@pingcap.com>
Co-authored-by: Jianjun Liao <36503113+Leavrth@users.noreply.github.com>
errno/errcode.go
Outdated
@@ -1063,6 +1063,7 @@ const ( | |||
ErrLoadDataInvalidOperation = 8171 | |||
ErrLoadDataLocalUnsupportedOption = 8172 | |||
ErrLoadDataPreCheckFailed = 8173 | |||
ErrBRJobNotFound = 8174 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
format
executor/brie.go
Outdated
@@ -354,6 +398,67 @@ func (b *executorBuilder) buildBRIE(s *ast.BRIEStmt, schema *expression.Schema) | |||
return e | |||
} | |||
|
|||
// oneshotExecutor warps a executor, making its `Next` would only be called once. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// oneshotExecutor warps a executor, making its `Next` would only be called once. | |
// oneshotExecutor wraps a executor, making its `Next` would only be called once. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Others lgtm
Signed-off-by: hillium <yujuncen@pingcap.com>
/retest-required |
Signed-off-by: hillium <yujuncen@pingcap.com>
Signed-off-by: hillium <yujuncen@pingcap.com>
/retest-required |
/retest-required |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 166f68f
|
/retest-required |
Signed-off-by: hillium <yujuncen@pingcap.com>
/retest-required |
Signed-off-by: hillium <yujuncen@pingcap.com>
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 09e57e9
|
Oops... This PR mistakenly brings #43562 to master. I think it is moral to check what branch we are in before committing. 😢 |
What problem does this PR solve?
Issue Number: close #43072 close
Problem Summary:
This PR implemented two new SQLs.
What is changed and how it works?
SHOW BR JOB QUERY <n:int>
will display the origin SQL of the backup job.(WARNING: the secret keys may not be redacted. So it requiresBACKUP_ADMIN or SUPER
role to be executed.)CANCEL BR JOB <n:int>
will cancel a running BR job. This just trivially cancel the context of the BR CLI for now.This PR also exported the
ID
row of the backups to the result ofSHOW BACKUPS
andSHOW RESTORES
, so you can reference it at the former SQLs.Check List
Tests
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.