-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix][client] Fix receiver queue auto-scale without memory limit #24743
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
lhotari
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, good work @pdolif
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #24743 +/- ##
============================================
- Coverage 74.29% 74.20% -0.10%
- Complexity 33140 33603 +463
============================================
Files 1895 1900 +5
Lines 147979 148403 +424
Branches 17137 17206 +69
============================================
+ Hits 109942 110119 +177
- Misses 29317 29495 +178
- Partials 8720 8789 +69
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Shawyeok
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
) (cherry picked from commit 8e35e34)
) (cherry picked from commit 8e35e34)
) (cherry picked from commit 8e35e34)
) (cherry picked from commit 8e35e34)
…che#24743) (cherry picked from commit 8e35e34)
…che#24743) (cherry picked from commit 8e35e34) (cherry picked from commit 298bba4)
…che#24743) (cherry picked from commit 8e35e34) (cherry picked from commit 298bba4)
…che#24743) (cherry picked from commit 8e35e34) (cherry picked from commit c1e9bb2)
…che#24743) (cherry picked from commit 8e35e34) (cherry picked from commit c1e9bb2)
Fixes #24694
Motivation
When the MemoryLimitController calculates the memory usage percentage, a division by 0 happens in case the memory limit is set to 0 / disabled. The current behaviour is that the percentage then is NaN.
Modifications
This PR changes the behaviour so that the percentage is always 0 in case the memory limit is 0.
Verifying this change
This change added tests and can be verified as follows:
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository: pdolif#14