Nikita Shupletsov created KAFKA-21459:
-----------------------------------------

             Summary: Issues if the buffer.memory is not divisible by 16384(the 
chunk size)
                 Key: KAFKA-21459
                 URL: https://issues.apache.org/jira/browse/KAFKA-21459
             Project: Kafka
          Issue Type: Sub-task
            Reporter: Nikita Shupletsov
            Assignee: Nikita Shupletsov


There are two potential problems when the buffer memory is not divisible by the 
chunk size.

Right now we do not allocate chunks of different size. so:
 # We either have a smaller effective buffer memory
 # Or we have a completely incorrect calculation.

For example.

if we set buffer memory to 20000, and try to send a record bigger than the 
chunk size, but smaller than the buffer memory, the check for the message size 
will pass, but we will not be able to allocate chunks, and the send will 
unexpectedly fail.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to