apoorvmittal10 commented on code in PR #19500: URL: https://github.com/apache/kafka/pull/19500#discussion_r2052300583
########## server/src/main/java/org/apache/kafka/server/share/session/ShareSessionCache.java: ########## @@ -122,15 +113,9 @@ public synchronized ShareSession remove(ShareSession session) { * Update a session's position in the lastUsed tree. * * @param session The session. - * @param now The current time in milliseconds. */ - public synchronized void touch(ShareSession session, long now) { + public synchronized void updateNumPartitions(ShareSession session) { synchronized (session) { Review Comment: Yes, the above also works or a sync block as earlier. I incline towards the former, which you suggested. -- 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