adixitconfluent commented on code in PR #19659: URL: https://github.com/apache/kafka/pull/19659#discussion_r2086372007
########## server/src/main/java/org/apache/kafka/server/share/session/ShareSessionCache.java: ########## @@ -90,6 +90,14 @@ public synchronized int size() { return sessions.size(); } + /** + * Remove all the share sessions from cache. + */ + public synchronized void removeAllSessions() { + sessions.clear(); + numPartitions = 0; Review Comment: yes, agreed. That's why I didn't clear it forcefully. -- 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