Repository navigation
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 4.22 #14965 +/- ##
============================================
- Coverage 18.34% 18.33% -0.01%
+ Complexity 16679 16677 -2
============================================
Files 5940 5940
Lines 537840 537844 +4
Branches 65940 65940
============================================
- Hits 98668 98639 -29
- Misses 427946 427989 +43
+ Partials 11226 11216 -10
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This branch has not been deployed
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.
There is no way to see which code holds a database connection and never gives it back. The pool just runs out and the error doesnt say who caused it. This adds a leakDetectionThreshold setting for the cloud, usage and simulator pools in db.properties. When a connection stays out longer than that, the pool logs a warning with the stack trace of the code that took it. It is off by default (0). The leak warning gets its own log line in log4j-cloud.xml.in so it still prints if the pool logs are muted. This picks up from #13407, which was closed because the leak logs needed tuning.
Test:
Set db.cloud.leakDetectionThreshold=2000 in db.properties, restart the management server and hold a connection longer than 2 seconds.
Before: no warning, the pool only fails once it runs out.
After: a warning from ProxyLeakTask with the stack trace in management-server.log. Lab results to follow.