lhotari opened a new pull request, #23967: URL: https://github.com/apache/pulsar/pull/23967
### Motivation When enabling Netty leak detection with #23956 changes at `paranoid` level, BatchMessageTest.testSendOverSizeMessage shows a Netty ByteBuf memory leak. This is a bug in BatchMessageContainerImpl. It doesn't release the payload when the message size exceeds max message size. ### Modifications - Properly release the payload (or compressed payload) buffer when the message size exceeds max message size ### Additional context After #23956 changes are included, it is possible to catch such memory leaks in pull request CI builds. ### Documentation <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. --> - [ ] `doc` <!-- Your PR contains doc changes. --> - [ ] `doc-required` <!-- Your PR changes impact docs and you will update later --> - [x] `doc-not-needed` <!-- Your PR changes do not impact docs --> - [ ] `doc-complete` <!-- Docs have been already added --> -- 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]
