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

   The PR handles slicing of fetched records based on acquire response for 
share fetch. There could be additional bytes fetched from log but acquired 
offsets can be a subset, typically with `max fetch records` configuration. 
Rather sending additional bytes of fetched data to client we should slice the 
file and wire only needed batches.
   
   Note: If the acquired offsets are within a batch then we need to send the 
entire batch within the file record. Hence rather checking for inidividual 
batches, PR finds the first and last acquired offset, and trims the file for 
all batches between (inclusive) these two offsets. 


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to