apoorvmittal10 commented on code in PR #20207: URL: https://github.com/apache/kafka/pull/20207#discussion_r2218959511
########## core/src/main/java/kafka/server/share/SharePartition.java: ########## @@ -599,7 +598,7 @@ public long nextFetchOffset() { lock.writeLock().lock(); try { // When none of the records in the cachedState are in the AVAILABLE state, findNextFetchOffset will be false - if (!findNextFetchOffset.get()) { + if (!findNextFetchOffset) { Review Comment: `findNextFetchOffset()` that's for tests mainly. There is no read call in SharePartition for this method. -- 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