adixitconfluent commented on code in PR #19598: URL: https://github.com/apache/kafka/pull/19598#discussion_r2071126386
########## core/src/main/java/kafka/server/share/SharePartition.java: ########## @@ -1338,26 +1344,33 @@ public boolean maybeAcquireFetchLock() { long currentTime = time.hiResClockMs(); fetchLockAcquiredTimeMs = currentTime; fetchLockIdleDurationMs = fetchLockReleasedTimeMs != 0 ? currentTime - fetchLockReleasedTimeMs : 0; + fetchLockAcquiredBy = fetchId; Review Comment: thanks for this suggestion. I am using `AtomicReference` now. -- 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