-
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
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. |
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 ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #58737 +/- ##
================================================
+ Coverage 73.1091% 74.6179% +1.5087%
================================================
Files 1689 1735 +46
Lines 466728 479488 +12760
================================================
+ Hits 341221 357784 +16563
+ Misses 104552 99111 -5441
- Partials 20955 22593 +1638
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 |
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 except the comment
lgtm for domain part |
@okJiang what comment? I'v addressed all I could see. |
Signed-off-by: artem_danilov <[email protected]>
/retest |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lcwangchao, rleungx, tangenta, yudongusa The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: artem_danilov <[email protected]>
Signed-off-by: artem_danilov <[email protected]>
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.