nileshkumar3 commented on code in PR #23780:
URL: https://github.com/apache/kafka/pull/23780#discussion_r4437127430


##########
clients/src/main/java/org/apache/kafka/common/record/internal/FileRecords.java:
##########
@@ -348,7 +348,21 @@ public LogOffsetPosition searchForOffsetFromPosition(long 
targetOffset, int star
      */
     public TimestampAndOffset searchForTimestamp(long targetTimestamp, int 
startingPosition, long startingOffset,
                                                  int maxRecordBodySize) {
-        for (RecordBatch batch : batchesFrom(startingPosition)) {
+        int endPosition = isSlice ? end : sizeInBytes();

Review Comment:
   Added to the javadoc.



-- 
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