-
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
executor/split: return split result when do split region and refine split timeout logic. #11259
Conversation
/run-all-tests |
Codecov Report
@@ Coverage Diff @@
## master #11259 +/- ##
===========================================
Coverage 81.4875% 81.4875%
===========================================
Files 423 423
Lines 91020 91020
===========================================
Hits 74170 74170
Misses 11542 11542
Partials 5308 5308 |
executor/split.go
Outdated
if err != nil { | ||
if isCtxDone(ctxWithTimeout) { | ||
// Do not break here for checking remain region scatter finished with a very short back off time. | ||
// Imagine this situation, we split region 1,2,3, and timeout on wait region 1 scatter, |
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.
IMHO the comment is still not good enough... would you please get help from some other colleagues, like i18n team?
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.
done.
Co-Authored-By: bb7133 <bb7133@gmail.com>
Co-Authored-By: bb7133 <bb7133@gmail.com>
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
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
/run-all-tests |
1 similar comment
/run-all-tests |
/run-cherry-picker |
2 similar comments
/run-cherry-picker |
/run-cherry-picker |
cherry pick to release-2.1 failed |
cherry pick to release-3.0 failed |
…split timeout logic. (pingcap#11259)
…split timeout logic. (pingcap#11259)
What problem does this PR solve?
The old split region timeout logic was return error when timeout. But return error is not suitable. Because after TiDB send
split
andscatter
request to PD, we should think the request must be executed successfully. The cost time ofsplit
andscatter
request finish depends on the TiKV/PD cluster whether busy.What is changed and how it works?
Check List
Tests
Code changes
Side effects
Related changes