shashankhs11 commented on code in PR #21022:
URL: https://github.com/apache/kafka/pull/21022#discussion_r2574244320


##########
streams/src/test/java/org/apache/kafka/streams/processor/internals/StreamThreadTest.java:
##########
@@ -1396,7 +1363,7 @@ public void 
shouldOnlyCompleteShutdownAfterRebalanceNotInProgress(final boolean
         assertTrue(thread.isAlive());
 
         Thread.sleep(1000);
-        assertEquals(Set.of(task1, task2), 
thread.taskManager().activeTaskIds());
+        assertEquals(Set.of(task1, task2), 
thread.taskManager().allTasks().keySet());

Review Comment:
   We use `allTasks()` here because the tasks, at this moment, may also be in 
the initialization queue and not active.
   ```
   tasks.addPendingTasksToInit(newActiveTasks)
   ```
   



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