-
Notifications
You must be signed in to change notification settings - Fork 751
client: introduce circuit breaker for region calls (#8856) #9913
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: introduce circuit breaker for region calls (#8856) #9913
Conversation
ref tikv#8678 Signed-off-by: ti-chi-bot <[email protected]>
|
@rleungx This PR has conflicts, I have hold it. |
|
@ti-chi-bot: ## If you want to know how to resolve it, please read the guide in TiDB Dev Guide. DetailsInstructions 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. |
Signed-off-by: Ryan Leung <[email protected]>
Signed-off-by: Ryan Leung <[email protected]>
ref tikv#8678 Signed-off-by: artem_danilov <[email protected]> Co-authored-by: artem_danilov <[email protected]> Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
ref tikv#8678 Signed-off-by: Ryan Leung <[email protected]> Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
ref tikv#8678 Signed-off-by: Ryan Leung <[email protected]> Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
ref tikv#8678 Signed-off-by: Ryan Leung <[email protected]>
ref tikv#8678 Signed-off-by: Ryan Leung <[email protected]> fix Signed-off-by: Ryan Leung <[email protected]>
Signed-off-by: Ryan Leung <[email protected]>
Signed-off-by: Ryan Leung <[email protected]>
cc0e930 to
f5275a9
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## release-8.5 #9913 +/- ##
===============================================
+ Coverage 75.87% 77.74% +1.86%
===============================================
Files 467 468 +1
Lines 73920 62544 -11376
===============================================
- Hits 56088 48623 -7465
+ Misses 14272 10345 -3927
- Partials 3560 3576 +16
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
okJiang
left a comment
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.
Do we need pick this #8887?
|
rest lgtm |
ref tikv#8678 Signed-off-by: Ryan Leung <[email protected]>
| @@ -0,0 +1,346 @@ | |||
| // Copyright 2024 TiKV Project Authors. | |||
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.
| // Copyright 2024 TiKV Project Authors. | |
| // Copyright 2025 TiKV Project Authors. |
bufferflies
left a comment
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
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bufferflies, okJiang The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
|
/hold cancel |
|
/hold |
|
/hold cancel |
This is an automated cherry-pick of #8856
What problem does this PR solve?
Issue Number: Ref #8678, tikv/rfcs#115
What is changed and how does it work?
This PR implements circuit breaker from tikv/rfcs#115 and integrates it into http and grpc PD clients for get region metadata calls, but disabled by default.
Check List
Tests
Code changes
Side effects
Related changes
pingcap/docs/pingcap/docs-cn:pingcap/tiup:Release note