-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Netty 'spring.netty-leak-detection' default property value is always applied to ResourceLeakDetector #32107
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
Comments
This looks like a bug to me, but I think we should probably change the default value in |
I don't think I agree with that. There are many configuration properties that have a default value that can be overridden by a system property (all our own properties, for a start). I think we should be documenting what the default value is if we decide to offer support for that. See #14338 |
I think we discussed the null value and decided against that in #26958 (comment) |
We'll have to discuss this one a bit more. We need to decide if IMO it's a bit strange at the moment that running an app with |
I think I've changed my mind. Developers can configure this with:
The configuration property should only apply if a specific value has been set, so setting the default value to Even with this solution, if |
We're going to change the default value in |
closing in favor of PR #32144 |
Uh oh!
There was an error while loading. Please reload this page.
Spring will override the Netty leak detection level set using
-Dio.netty.leakDetection.level=advanced
The code below want to set leak detection if property was not null. But the property has default value as SIMPLE. This will get leak detection overridden as SIMPLE always if you set it other value like 'advanced' outside of Spring
changed to
will solve the problem as LeakDetection will be simple if not set.
Happy to raise a PR if this is
Version: current main branch
The text was updated successfully, but these errors were encountered: