ableegoldman commented on code in PR #12903: URL: https://github.com/apache/kafka/pull/12903#discussion_r1041646981
########## streams/src/main/java/org/apache/kafka/streams/state/internals/ThreadCache.java: ########## @@ -81,9 +85,11 @@ public synchronized void resize(final long newCacheSizeBytes) { return; } final CircularIterator<NamedCache> circularIterator = new CircularIterator<>(caches.values()); - while (sizeBytes() > maxCacheSizeBytes) { + while (sizeInBytes.get() > maxCacheSizeBytes) { final NamedCache cache = circularIterator.next(); + final long oldSize = cache.sizeInBytes(); Review Comment: that sounds good to me -- 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