-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
copr: Fix bug that mpp node availability detect does not work in some corner cases #28201
copr: Fix bug that mpp node availability detect does not work in some corner cases #28201
Conversation
[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. |
8a5e187
to
1d12238
Compare
/label needs-cherry-pick-5.0 |
/label needs-cherry-pick-5.1 |
/label needs-cherry-pick-5.2 |
Please follow PR Title Format:
Or if the count of mainly changed packages are more than 3, use
After you have format title, you can leave a comment |
1d12238
to
c1b6b2d
Compare
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
/merge |
This pull request has been accepted and is ready to merge. Commit hash: c1b6b2d
|
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-5.0 in PR #28287 |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-5.1 in PR #28288 |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-5.2 in PR #28289 |
This reverts commit 6542593.
… corner cases (#28201) (#28288) close pingcap/tiflash#3118
What problem does this PR solve?
Issue Number: close pingcap/tiflash#3118
Problem Summary:
As described in the issue.
What is changed and how it works?
Proposal: xxx
What's Changed:
How it Works:
The root cause is we detect the TiFlash node's availability in
balanceBatchCopTask
, but here is a shortcut inbalanceBatchCopTask
that if there is only one batchCopTask, it will return directly without balancing, which means the availability check is also skipped.tidb/store/copr/batch_coprocessor.go
Lines 107 to 111 in 3c9c01e
This pr fix this by not trigger the shortcut if the query is mpp query.
Check List
Tests
Side effects
Documentation
Release note