[ 
https://issues.apache.org/jira/browse/KAFKA-18522?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17922341#comment-17922341
 ] 

Apoorv Mittal commented on KAFKA-18522:
---------------------------------------

Hi [~junrao], thanks for the help. I looked into the code and started working 
on it. One query I have regarding below check, where `
currentSizeInBytes` is lesser than `start` hence for any non-negative start 
position this check will error out. Also position cannot be non-negative as per 
the other check in the method. What am I missing?
 

!image-2025-01-30-11-53-46-496.png!

> Limit fetch records batches as per acquired records
> ---------------------------------------------------
>
>                 Key: KAFKA-18522
>                 URL: https://issues.apache.org/jira/browse/KAFKA-18522
>             Project: Kafka
>          Issue Type: Sub-task
>            Reporter: Apoorv Mittal
>            Assignee: Apoorv Mittal
>            Priority: Major
>         Attachments: image-2025-01-30-11-53-46-496.png
>
>
> [https://github.com/apache/kafka/pull/17322#discussion_r1803823292]
>  
> https://github.com/apache/kafka/pull/18459/files#r1913905321



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

Reply via email to