lhotari commented on issue #25257: URL: https://github.com/apache/pulsar/issues/25257#issuecomment-3957685524
As background, the leak detection for tests was added in #24272. It's active when tests are run via maven command line. By default, the dump files go to java.io.tmpdir . It's possible to set `NETTY_LEAK_DUMP_DIR` to configure the directory. ``` NETTY_LEAK_DUMP_DIR=/some/directory mvn -DexcludedGroups='' --fail-at-end -DredirectTestOutputToFile=false -DtestRetryCount=0 test -pl pulsar-broker -Dtest=ShadowTopicTest ``` In many cases, the leaks are in the tests and it would be useful to fix them too so that real issues could be caught. Some real production code leaks were found with this solution in the past. -- 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]
