Forest0923 commented on code in PR #19961: URL: https://github.com/apache/kafka/pull/19961#discussion_r2167819467
########## storage/src/main/java/org/apache/kafka/storage/internals/log/OffsetIndex.java: ########## @@ -95,7 +99,7 @@ public void sanityCheck() { * the pair (baseOffset, 0) is returned. */ public OffsetPosition lookup(long targetOffset) { - return maybeLock(lock, () -> { + return inLock(lock, () -> { Review Comment: Thank you for the advice! I have added resizeLock, could you please check? -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org