cadonna commented on code in PR #12600: URL: https://github.com/apache/kafka/pull/12600#discussion_r964789596
########## streams/src/main/java/org/apache/kafka/streams/processor/internals/TaskManager.java: ########## @@ -786,17 +833,20 @@ private void handleRemovedTasksFromStateUpdater() { for (final Task task : stateUpdater.drainRemovedTasks()) { Set<TopicPartition> inputPartitions; if ((inputPartitions = tasks.removePendingTaskToRecycle(task.id())) != null) { - recycleTask(task, inputPartitions, tasksToCloseDirty, taskExceptions); + recycleTaskFromStateUpdater(task, inputPartitions, tasksToCloseDirty, taskExceptions); } else if (tasks.removePendingTaskToCloseClean(task.id())) { closeTaskClean(task, tasksToCloseDirty, taskExceptions); } else if (tasks.removePendingTaskToCloseDirty(task.id())) { tasksToCloseDirty.add(task); } else if ((inputPartitions = tasks.removePendingTaskToUpdateInputPartitions(task.id())) != null) { task.updateInputPartitions(inputPartitions, topologyMetadata.nodeToSourceTopics(task.id())); stateUpdater.add(task); + } else if (tasks.removePendingActiveTaskToSuspend(task.id())) { + task.suspend(); + tasks.addTask(task); Review Comment: Here we handle revoked active tasks that were removed from the state updater -- 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