Show heap percent threshold in cancellation message#20779
Show heap percent threshold in cancellation message#20779jainankitk merged 1 commit intoopensearch-project:mainfrom
Conversation
PR Reviewer Guide 🔍(Review updated until commit 8f77d6c)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 8f77d6c Explore these optional code suggestions:
Previous suggestionsSuggestions up to commit 4c98efd
Suggestions up to commit 65901c1
Suggestions up to commit 3dc614f
Suggestions up to commit 7e42915
|
|
❌ Gradle check result for 7e42915: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
Persistent review updated to latest commit 3dc614f |
|
Persistent review updated to latest commit 65901c1 |
|
Persistent review updated to latest commit 4c98efd |
Signed-off-by: David Zane <davizane@amazon.com>
|
Persistent review updated to latest commit 8f77d6c |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #20779 +/- ##
============================================
- Coverage 73.29% 73.27% -0.02%
- Complexity 72088 72095 +7
============================================
Files 5794 5794
Lines 329733 329733
Branches 47577 47577
============================================
- Hits 241664 241599 -65
- Misses 68612 68718 +106
+ Partials 19457 19416 -41 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Description
Fixes the confusing cancellation message in
HeapUsageTrackerreportedin #17947. The message previously showed the moving-average-based
allowedUsagevalue, which could be extremely small (hundreds of KB)when historical tasks were lightweight. This made log messages like
heap usage exceeded [3.4gb >= 800.5kb]nonsensical to operators.The cancellation condition requires both
currentUsage >= threshold(heap percent) and
currentUsage >= allowedUsage(moving avg * variance)to be true. The heap percent threshold is the more meaningful and
accurate threshold to display.
Before:
heap usage exceeded [3.4gb >= 800.5kb]After:
heap usage exceeded [3.4gb >= 150mb]Related Issues
Resolves #17947
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.