-
Notifications
You must be signed in to change notification settings - Fork 719
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
client: fix the pd client could be blocked in some cases (#3283) #3285
client: fix the pd client could be blocked in some cases (#3283) #3285
Conversation
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@leoppro please accept the invitation then you can push to the cherry-pick pull requests. |
@leoppro Please resolve the conflicts. |
@leoppro It seems that applying suggestions doesn't have sign-off and misses fomating to the codes. |
c055216
to
f4e5e7f
Compare
/lgtm |
Codecov Report
@@ Coverage Diff @@
## release-4.0 #3285 +/- ##
===============================================
- Coverage 74.68% 74.59% -0.10%
===============================================
Files 209 209
Lines 19591 19594 +3
===============================================
- Hits 14632 14616 -16
- Misses 3633 3645 +12
- Partials 1326 1333 +7
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
/merge |
@nolouch: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests 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/ti-community-prow repository. |
This pull request has been accepted and is ready to merge. Commit hash: f4e5e7f
|
@ti-srebot: Your PR has out-of-dated and I have automatically updated it for you. /run-all-tests 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/ti-community-prow repository. |
cherry-pick #3283 to release-4.0
Signed-off-by: leoppro zhaoyilin@pingcap.com
What problem does this PR solve?
Fix the PD client could be blocked in some cases
What is changed and how it works?
There are two levels of context in PD client:
client context
andtso request context
.the
tsoRequest.Wait()
function could be blocked when theclient context
is canceled because theWait()
function haven't listened theclient context
Benchmark
the version of PD server: v4.0.8
before this PR:
after this PR:
Check List
Tests
Release note