mjsax commented on code in PR #19507: URL: https://github.com/apache/kafka/pull/19507#discussion_r2049466915
########## streams/src/main/java/org/apache/kafka/streams/processor/internals/TaskManager.java: ########## @@ -553,7 +553,7 @@ private void handleTasksWithStateUpdater(final Map<TaskId, Set<TopicPartition>> private void handleTasksPendingInitialization() { // All tasks pending initialization are not part of the usual bookkeeping for (final Task task : tasks.drainPendingTasksToInit()) { - closeTaskClean(task, Collections.emptySet(), Collections.emptyMap()); + closeTaskClean(task, new HashSet<>(), new HashMap<>()); Review Comment: Good point. I guess yes. (even if it seems unlikely that a task that was initialized yet, would fail to close clean). Originally we did not use `closetTaskClean()` but the PR introducing this change started to use it: https://github.com/apache/kafka/pull/16730 I did not did into the original PR, but it seems there was some issue with leaking resources in tests? So maybe it's just a test issue? -- 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