clarkwtc opened a new pull request, #17578: URL: https://github.com/apache/kafka/pull/17578
Avoid using AbstractMessageLite to initialize bytes with serialized size, it can lead to adding extra bytes. Instead, ByteArrayOutputStream is used for the buffer capacity, which is initially 32 bytes, though its size increases if necessary. ### Committer Checklist (excluded from commit message) - [ ] Verify design and implementation - [ ] Verify test coverage and CI build status - [ ] Verify documentation (including upgrade notes) -- 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]
