I'm wondering if we should just use the oversized buffer for the remainder of the loading since we have already allocated it. For one thing, that would allow the other buffer to be collected immediately. It may also prevent further allocations if the topic has many oversized messages.
[ Full content available at: https://github.com/apache/kafka/pull/5500 ] This message was relayed via gitbox.apache.org for [email protected]
