vamossagar12 commented on a change in pull request #11433:
URL: https://github.com/apache/kafka/pull/11433#discussion_r779716364



##########
File path: 
streams/src/main/java/org/apache/kafka/streams/processor/internals/TaskManager.java
##########
@@ -292,12 +327,20 @@ public void handleAssignment(final Map<TaskId, 
Set<TopicPartition>> activeTasks,
         final Set<Task> tasksToRecycle = new TreeSet<>(byId);
         final Set<Task> tasksToCloseClean = new TreeSet<>(byId);
         final Set<Task> tasksToCloseDirty = new TreeSet<>(byId);
+        boolean commitAssignedActiveTasks = false;
+        final Set<Task> activeTasksNeedCommit = new HashSet<>();
 
         // first rectify all existing tasks
         for (final Task task : tasks.allTasks()) {
             if (activeTasks.containsKey(task.id()) && task.isActive()) {
                 tasks.updateInputPartitionsAndResume(task, 
activeTasks.get(task.id()));
                 activeTasksToCreate.remove(task.id());
+                if (task.state() == State.RESTORING) {

Review comment:
       hey @ableegoldman , let me know if you get a chance to look at this one 
now!




-- 
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


Reply via email to