MINOR: Fix misleading log-line (#14643)

After finishing restoration, we should only log the active tasks. Standby tasks are not part of restoration and it can be confusing to see them show up on this log message.

Reviewers: Matthias J. Sax <matthias@confluent.io>
This commit is contained in:
Lucas Brutschy 2023-10-26 17:31:46 +02:00 committed by Matthias J. Sax
parent af228ca84f
commit a593d8ac30
1 changed files with 2 additions and 2 deletions

View File

@ -899,8 +899,8 @@ public class StreamThread extends Thread {
log.debug("State is {}; initializing tasks if necessary", stateSnapshot);
if (taskManager.tryToCompleteRestoration(now, offsetResetter)) {
log.info("Restoration took {} ms for all tasks {}", time.milliseconds() - lastPartitionAssignedMs,
taskManager.allTasks().keySet());
log.info("Restoration took {} ms for all active tasks {}", time.milliseconds() - lastPartitionAssignedMs,
taskManager.activeTaskIds());
setState(State.RUNNING);
}