-
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
executor: change the behavior of mem-quota-query #37098
Conversation
[REVIEW NOTIFICATION] This pull request has not been approved. To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/a19bfbb9844360692305b64b456d09a193cbc201 |
de42fd2
to
1e5af99
Compare
util/memory/tracker.go
Outdated
@@ -398,6 +369,30 @@ func (t *Tracker) Consume(bs int64) { | |||
} | |||
} | |||
|
|||
func tryAction(mu *actionMu, tracker *Tracker) { | |||
actionOne := func(nowAction ActionOnExceed, tracker *Tracker) ActionOnExceed { | |||
for nowAction != nil && nowAction.IsFinished() { |
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.
nowAction --> currentAction
@wshwsh12: PR needs rebase. 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/test-infra repository. |
@@ -1719,6 +1718,7 @@ func TestDoDDLJobQuit(t *testing.T) { | |||
} | |||
|
|||
func TestCoprocessorOOMAction(t *testing.T) { | |||
t.Skip("rate limit action can't control the memory usage in time, skip now") |
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.
rate_limit is disabled, can this unit test pass for now?
What problem does this PR solve?
Issue Number: close #37104
Problem Summary:
What is changed and how it works?
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.