guozhangwang commented on a change in pull request #11424: URL: https://github.com/apache/kafka/pull/11424#discussion_r774058848
########## File path: streams/src/main/java/org/apache/kafka/streams/KafkaStreams.java ########## @@ -1224,17 +1248,20 @@ private int getNextThreadIndex() { } } - private long getCacheSizePerThread(final int numStreamThreads) { + private long getMemorySizePerThread(final int numStreamThreads, final boolean resizeCache) { Review comment: Could we create the new thread with `0` initial values first, and then call `resizeThreadCacheOrBufferMemory` to set the new values for all threads, including the new thread? -- 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