nileshkumar3 commented on code in PR #23780:
URL: https://github.com/apache/kafka/pull/23780#discussion_r4437134115
##########
clients/src/main/java/org/apache/kafka/common/record/internal/FileRecords.java:
##########
@@ -434,7 +456,12 @@ private AbstractIterator<FileChannelRecordBatch>
batchIterator(int start) {
end = this.end;
else
end = this.sizeInBytes();
- FileLogInputStream inputStream = new FileLogInputStream(this, start,
end);
+ return batchIterator(start, end);
+ }
+
+ private AbstractIterator<FileChannelRecordBatch> batchIterator(int start,
int end) {
+ int boundedEnd = isSlice ? Math.min(end, this.end) : end;
Review Comment:
Done, using your suggestion.
--
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]