mirror of https://github.com/apache/kafka.git
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:
parent
af228ca84f
commit
a593d8ac30
|
@ -899,8 +899,8 @@ public class StreamThread extends Thread {
|
||||||
log.debug("State is {}; initializing tasks if necessary", stateSnapshot);
|
log.debug("State is {}; initializing tasks if necessary", stateSnapshot);
|
||||||
|
|
||||||
if (taskManager.tryToCompleteRestoration(now, offsetResetter)) {
|
if (taskManager.tryToCompleteRestoration(now, offsetResetter)) {
|
||||||
log.info("Restoration took {} ms for all tasks {}", time.milliseconds() - lastPartitionAssignedMs,
|
log.info("Restoration took {} ms for all active tasks {}", time.milliseconds() - lastPartitionAssignedMs,
|
||||||
taskManager.allTasks().keySet());
|
taskManager.activeTaskIds());
|
||||||
setState(State.RUNNING);
|
setState(State.RUNNING);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue