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


##########
streams/src/main/java/org/apache/kafka/streams/processor/internals/TaskManager.java:
##########
@@ -454,6 +479,24 @@ private void handleTasksWithoutStateUpdater(final 
Map<TaskId, Set<TopicPartition
                                                 final Map<TaskId, 
Set<TopicPartition>> standbyTasksToCreate,
                                                 final Map<Task, 
Set<TopicPartition>> tasksToRecycle,
                                                 final Set<Task> 
tasksToCloseClean) {
+        final Map<Task, Set<TopicPartition>> initialStandbyTasksToRecycle = 
assignInitialTasks(activeTasksToCreate, logPrefix, topologyMetadata, 
changelogReader);
+        final Map<Task, Set<TopicPartition>> initialStandbyTasksToUse = 
assignInitialTasks(activeTasksToCreate, logPrefix, topologyMetadata, 
changelogReader);

Review Comment:
   Good spot. I'd already fixed this in the `StateUpdater` implementation 
(`handleInitialTaskReuse`), which was picked up by a test, but this one must 
have slipped through.
   
   You're right that this needs better test coverage, so I'll leave this 
comment open as a reminder to add a test here.
   
   (I'm working on fixing this right now, but having some problems with failing 
tests)



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