mjsax commented on a change in pull request #11455: URL: https://github.com/apache/kafka/pull/11455#discussion_r791323385
########## File path: streams/src/test/java/org/apache/kafka/streams/integration/GlobalKTableIntegrationTest.java ########## @@ -176,7 +177,9 @@ public void shouldKStreamGlobalKTableLeftJoin() throws Exception { TestUtils.waitForCondition( () -> { globalState.clear(); - replicatedStore.all().forEachRemaining(pair -> globalState.put(pair.key, pair.value)); + try (final KeyValueIterator<Long, String> it = replicatedStore.all()) { Review comment: side cleanup to close the iterator (same below) -- 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