horizonzy commented on issue #3751:
URL: https://github.com/apache/bookkeeper/issues/3751#issuecomment-1427204691
Add more context:
The method io.netty.channel.DefaultChannelPipeline#touch is for memory leak
detection.
```
private final boolean touch = ResourceLeakDetector.isEnabled();
final Object touch(Object msg, AbstractChannelHandlerContext next) {
return touch ? ReferenceCountUtil.touch(msg, next) : msg;
}
```
io.netty.util.ResourceLeakDetector#isEnabled:
```
public static boolean isEnabled() {
return getLevel().ordinal() >
ResourceLeakDetector.Level.DISABLED.ordinal();
}
```
io.netty.util.ResourceLeakDetector.Level:
```
public static enum Level {
DISABLED,
SIMPLE,
ADVANCED,
PARANOID;
}
```
If the user didn't config ResourceLeakDetector LEVEL, it may work well. but
If the user config the ResourceLeakDetector.LEVEL greater than DISABLED, the
problem will happen.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]