[ https://issues.apache.org/jira/browse/KAFKA-18522?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17916806#comment-17916806 ]
Jun Rao commented on KAFKA-18522: --------------------------------- [~apoorvmittal10] : Yes, FileRecords just points to a byte range in a file channel. Once we figure out the actual size of data that need to be returned, we can take a slice of FileRecords with a new end. See FileRecords.slice. > 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 > > [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)