nileshkumar3 opened a new pull request, #23780: URL: https://github.com/apache/kafka/pull/23780
## Summary - ListOffsets searched past the high watermark for `MAX_TIMESTAMP` and then returned `-1`, hiding an earlier timestamp the client is allowed to read. - Pass `lastFetchableOffset` into the log search. When that bound is behind the log end, return the largest timestamp still inside it, including a max that lives in an earlier segment. ## Test plan - [x] `UnifiedLogTest.testFetchOffsetByTimestampRespectsFetchableBound` - [x] `UnifiedLogTest.testMaxTimestampBelowBoundCanComeFromEarlierSegment` - [x] `UnifiedLogTest.testFetchOffsetByTimestampWithMaxTimestampIncludesTimestamp` - [x] `FileRecordsTest.testSearchForTimestamp` - [x] `:storage:checkstyleMain`, `:storage:checkstyleTest`, `:clients:checkstyleMain`, spotless on the touched modules -- 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]
