jack2012aa opened a new pull request, #22628: URL: https://github.com/apache/kafka/pull/22628
# Description In PR #21215 we found out that setting batch size to zero not necessarily disable the batching behavior. Producer needs one to two more records to perform send. `RecordAccumulator` uses an estimated size to allocate the buffer for the batch. The size is actually larger than two records. This is probably the reason of the behavior. # Tests `RecordAccumulatorTest#testBatchSizeZero` shows that the real batch size is larger than two records. `KafkaProducerTest#testBatchSizeZero` shows that only after trying to send the third record the first two records are sent. -- 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]
