You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Satish Duggana (Jira)" <ji...@apache.org> on 2023/01/07 05:08:00 UTC

[jira] [Created] (KAFKA-14602) offsetDelta in BatchMetadata is an int but the values are computed as difference of offsets which are longs.

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)