lhotari opened a new pull request, #24832: URL: https://github.com/apache/pulsar/pull/24832
### Motivation PulsarDecoder unnecessarily keeps a reference to the last parsed message. It's better to clear it immediately to avoid unnecessary memory growth when there are multiple connections. This mainly impacts `GET_TOPICS_OF_NAMESPACE_RESPONSE` which can be large. ### Modifications - call `cmd.clear()` in the finally block of `channelRead`. ### 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]
