lucasbru commented on code in PR #13369: URL: https://github.com/apache/kafka/pull/13369#discussion_r1138444392
########## streams/src/main/java/org/apache/kafka/streams/state/internals/ThreadCache.java: ########## @@ -280,6 +280,13 @@ synchronized void close(final String namespace) { } } + synchronized void clear(final String namespace) { + final NamedCache cleared = caches.get(namespace); + if (cleared != null) { + cleared.clear(); Review Comment: Make sure to update `sizeInBytes` as well! -- 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