-
Notifications
You must be signed in to change notification settings - Fork 1.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
[Backport 2.x] Bound the size of cache in deprecation logger (#16724) #16770
[Backport 2.x] Bound the size of cache in deprecation logger (#16724) #16770
Conversation
❌ 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? |
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 <[email protected]> (cherry picked from commit b1bf72f) Signed-off-by: Andrew Ross <[email protected]>
6693fb7
to
7449adb
Compare
❕ 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. |
Backports b1bf72f from #16724