Satish Duggana created KAFKA-14602:
--------------------------------------

             Summary: offsetDelta in BatchMetadata is an int but the values are 
computed as difference of offsets which are longs.
                 Key: KAFKA-14602
                 URL: https://issues.apache.org/jira/browse/KAFKA-14602
             Project: Kafka
          Issue Type: Bug
          Components: core
            Reporter: Satish Duggana


This is a followup of the discussion in 
https://github.com/apache/kafka/pull/13043#discussion_r1063071578

offsetDelta in BatchMetadata is an int. Becasue of which, ProducerAppendInfo 
may set a value that can overflow. Ideally, this data type should be long 
instead of int. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to