guozhangwang commented on code in PR #13228: URL: https://github.com/apache/kafka/pull/13228#discussion_r1114660189
########## streams/src/main/java/org/apache/kafka/streams/processor/internals/DefaultStateUpdater.java: ########## @@ -598,6 +685,12 @@ public Set<StandbyTask> getUpdatingStandbyTasks() { : Collections.emptySet(); } + public Set<StreamTask> getUpdatingActiveTasks() { + return stateUpdaterThread != null Review Comment: That's a good point, will update. ########## streams/src/main/java/org/apache/kafka/streams/processor/internals/DefaultStateUpdater.java: ########## @@ -151,9 +202,18 @@ private void resumeTasks() { } } - private void restoreTasks() { + private void pauseTasks() { + for (final Task task : updatingTasks.values()) { Review Comment: I think the perf impact should be small since pause/resume are not commonly used, and if the named topology are not paused, then checking the status is just a few cpu cycles. -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org