[Backport 2.x] Bound the size of cache in deprecation logger (#16724)#16770
Merged
reta merged 1 commit intoopensearch-project:2.xfrom Dec 4, 2024
Merged
Conversation
reta
approved these changes
Dec 3, 2024
Contributor
|
❌ Gradle check result for 6693fb7: 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? |
gaobinlong
reviewed
Dec 4, 2024
The current implementation of the map used to de-duplicate deprecation log messages can grow without bound. This adds a simple fixed limit to the data structure tracking existing loggers. Once the limit is breached new loggers will no longer log deprecation warnings. I also added a check to skip the tracking if the deprecation logger is disabled. Signed-off-by: Andrew Ross <andrross@amazon.com> (cherry picked from commit b1bf72f) Signed-off-by: Andrew Ross <andrross@amazon.com>
6693fb7 to
7449adb
Compare
Contributor
|
❕ Gradle check result for 7449adb: UNSTABLE Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 2.x #16770 +/- ##
============================================
- Coverage 71.94% 71.89% -0.05%
- Complexity 65473 65494 +21
============================================
Files 5314 5314
Lines 305297 305364 +67
Branches 44490 44501 +11
============================================
- Hits 219648 219555 -93
- Misses 67341 67528 +187
+ Partials 18308 18281 -27 ☔ View full report in Codecov by Sentry. |
reta
approved these changes
Dec 4, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backports b1bf72f from #16724