You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "apoorvmittal10 (via GitHub)" <gi...@apache.org> on 2025/12/03 09:19:28 UTC

[PR] KAFKA-19957: Accumulate offsets response in same batch (#21061) [kafka]

apoorvmittal10 opened a new pull request, #21064:
URL: https://github.com/apache/kafka/pull/21064

   Merges contiguous AcquiredRecords with the same delivery count into single records.
   
   The PR accumulates multiple offsets in a single batch only if the offsets are part of same in-flight batch i.e. if cache has 0-4, and 5-9 and the records acquired are 3,4,5,6, with same delivery count, then output shall be [3-4],[5-6].  This has been done to make sure that offsets accumulation is not past  the `batch size` in request. The in-flight batches originally formed on  the broker are created as per the `batch size` from the client hence  accumulating from single batch is safe.
   
   However, if in a same share group multiple clients request with different batch sizes then there would be discrepancy. Having said that, the similar problem might occur with complete batch acquisition in this case hence  that should be fixed separately, if needed.
   
   Reviewers: Andrew Schofield <as...@confluent.io>


-- 
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: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KAFKA-19957: Accumulate offsets response in same batch (#21061) [kafka]

Posted by "apoorvmittal10 (via GitHub)" <gi...@apache.org>.
apoorvmittal10 merged PR #21064:
URL: https://github.com/apache/kafka/pull/21064


-- 
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: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org