mjsax commented on code in PR #16922:
URL: https://github.com/apache/kafka/pull/16922#discussion_r1730458135


##########
streams/src/main/java/org/apache/kafka/streams/processor/internals/TaskManager.java:
##########
@@ -475,7 +518,7 @@ private void handleTasksWithoutStateUpdater(final 
Map<TaskId, Set<TopicPartition
                     tasksToRecycle.put(task, standbyTasksToCreate.get(taskId));
                 }
                 standbyTasksToCreate.remove(taskId);
-            } else {
+            } else if (!recycledInitialTasks.contains(taskId)) {

Review Comment:
   Given the current code, `tasks.allTasks()` should not contain any 
"initialized tasks" thus it seems we don't need this guard as it would always 
be true (this might change based on the comment above?)?



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to