-
Notifications
You must be signed in to change notification settings - Fork 753
feat(resourcemanager): invalidate the burstable groups by overriding to service limit #9577
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
Conversation
Signed-off-by: JmPotato <github@ipotato.me>
| } | ||
| // First, try to get tokens from the resource group. | ||
| tb, trickleTimeMs := rg.RUSettings.RU.request(now, requiredToken, targetPeriodMs, clientUniqueID) | ||
| rg.Unlock() |
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.
This is to fix the deadlock caused by line 273.
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.
Line 274 updates the lastLimitedTokens of rg, so we should still hold the lock to avoid race. Better change L273 instead of release the lock too early.
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.
Fixed.
|
@JmPotato: GitHub didn't allow me to request PR reviews from the following users: glorv. Note that only tikv members and repo collaborators can review this PR, and authors cannot review their own PRs. |
Signed-off-by: JmPotato <github@ipotato.me>
glorv
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.
LGTM
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #9577 +/- ##
==========================================
+ Coverage 76.34% 76.41% +0.07%
==========================================
Files 482 482
Lines 75895 75911 +16
==========================================
+ Hits 57940 58006 +66
+ Misses 14376 14336 -40
+ Partials 3579 3569 -10
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lhy1024, rleungx 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 |
What problem does this PR solve?
Issue Number: ref #9296.
What is changed and how does it work?
Check List
Tests
Release note