-
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
*: integrate circuitbreaker for get region calls to PD #58737
base: master
Are you sure you want to change the base?
Conversation
Hi @Tema. Thanks for your PR. I'm waiting for a pingcap member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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 kubernetes-sigs/prow repository. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @Tema. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. 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 kubernetes-sigs/prow repository. |
Now you can start all CI jobs with |
PTAL @rleungx |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #58737 +/- ##
================================================
+ Coverage 73.4990% 74.3619% +0.8628%
================================================
Files 1680 1730 +50
Lines 465221 477021 +11800
================================================
+ Hits 341933 354722 +12789
+ Misses 102424 99889 -2535
- Partials 20864 22410 +1546
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@rleungx could you please help to see why it fails with the following? I'm brining the same version as you brought into client-go. Locally it builds w/o any issue.
|
Have you run |
fab27a5
to
3586031
Compare
Thanks. I've done it now but it still complains with other error:
Looks like bazel stuff does not work well with referenced to personal repos like |
@hawkingrei PTAL |
Signed-off-by: artem_danilov <[email protected]>
8f454b4
to
1bc1b64
Compare
@rleungx I've rebased this PR and refer the new tip of the master https://github.com/tikv/client-go, but bazel still fails even though I've included results of from fast_test_tiprow below:
|
/test build |
@rleungx: The specified target(s) for
Use In response to this:
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 kubernetes-sigs/prow repository. |
I think it works now. |
/test fast_test_tiprow |
@rleungx: The specified target(s) for
The following commands are available to trigger optional jobs:
Use
In response to this:
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 kubernetes-sigs/prow repository. |
@rleungx: The specified target(s) for
Use In response to this:
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 kubernetes-sigs/prow repository. |
@ti-chi-bot[bot]: The specified target(s) for
Use In response to this:
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 kubernetes-sigs/prow repository. |
/retest |
@Tema FYI, the test fast_test_tiprow seems have problem. If wanna rerun failed tests, you can just comment retest. |
@@ -150,3 +154,9 @@ func (do *Domain) changeSchemaCacheSize(ctx context.Context, size uint64) error | |||
do.infoCache.Data.SetCacheCapacity(size) | |||
return nil | |||
} | |||
|
|||
func (do *Domain) changePDMetadataCircuitBreakerErrorRateThresholdPct(errorRatePct uint32) { | |||
tikv.ChangePDRegionMetaCircuitBreakerSettings(func(config *circuitbreaker.Settings) { |
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.
Seems this method does not need the Domain
state, why not just call tikv. ChangePDRegionMetaCircuitBreakerSettings
in SetGlobal
?
Signed-off-by: artem_danilov <[email protected]>
Signed-off-by: artem_danilov <[email protected]>
Signed-off-by: artem_danilov <[email protected]>
@rleungx all tests passed finally! |
This PR introduces a new variable |
What problem does this PR solve?
Issue Number: close #58780
Problem Summary:
What changed and how does it work?
Introduce a global session variable to control PD Get region call circuitbreaker: https://github.com/tikv/rfcs/blob/master/text/0115-circuit-breaker.md#system-variables
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.