cadonna commented on code in PR #16545:
URL: https://github.com/apache/kafka/pull/16545#discussion_r1667658628
##########
streams/src/main/java/org/apache/kafka/streams/processor/internals/TaskManager.java:
##########
@@ -1233,11 +1233,11 @@ private void closeRunningTasksDirty() {
maybeUnlockTasks(allTaskIds);
}
- private void removeLostActiveTasksFromStateUpdater() {
+ private void removeLostActiveTasksFromStateUpdaterAndPendingTasksToInit() {
if (stateUpdater != null) {
final Map<TaskId,
CompletableFuture<StateUpdater.RemovedTaskResult>> futures = new
LinkedHashMap<>();
final Map<TaskId, RuntimeException> failedTasksDuringCleanClose =
new HashMap<>();
- final Set<Task> tasksToCloseClean = new HashSet<>();
+ final Set<Task> tasksToCloseClean = new
HashSet<>(tasks.drainPendingActiveTasksToInit());
Review Comment:
This is the actual fix.
--
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]