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
brie: add error info column and history backup/restore info in sql #22699
Conversation
/cc kennytm,3pointer,overvenus,glorv |
/unlabel sig/execution |
/remove-sig execution |
executor/brie.go
Outdated
if len(item.info.errStr) > 0 { | ||
e.result.AppendString(7, item.info.errStr) | ||
} else { | ||
e.result.AppendNull(7) | ||
} |
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.
Could you add a test to cover them?
dc3ec31
to
b49696e
Compare
/remove-sig execution |
/remove-sig execution |
/run-integration-br-test |
1 similar comment
/run-integration-br-test |
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.
Rest LGTM
} else { | ||
switch ft[colIdx].EvalType() { |
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.
Why replace continue
with else
?
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.
If colIdx
is the last column of this row, we shouldn't put the comma(,
) after nil
nor NULL
.
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.
LGTM
@overvenus: Please use If you have approved this PR, please ignore this reply. This reply is being used as a temporary reply during the migration of the new bot and will be removed on April 1. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
[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. |
/run-check_dev_2 |
/run-check_dev_2 |
/run-check_dev_2 stuck on TestCoprocessorOOMAction |
/run-check_dev_2 |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: c936e17
|
@lichunzhu: Your PR was out of date, I have automatically updated it for you. At the same time I will also trigger all tests for you: /run-all-tests If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
What problem does this PR solve?
Issue Number: close #xxx
Problem Summary: When we use BRIE to run a backup job, if our mysql connection is broken due to some reason, we can't infer whether this BRIE job is successful or not.
What is changed and how it works?
What's Changed: Save history brie jobs in the task queue and add an error info column.
Related changes
pingcap/docs
/pingcap/docs-cn
:Check List
Tests
Run a BR job and stop the network.
Current:
Previous:
No backup can be found.
Side effects
Release note