cadonna commented on code in PR #12583: URL: https://github.com/apache/kafka/pull/12583#discussion_r962743402
########## streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamThread.java: ########## @@ -770,7 +771,7 @@ void runOnce() { long totalCommitLatency = 0L; long totalProcessLatency = 0L; long totalPunctuateLatency = 0L; - if (state == State.RUNNING) { + if (state == State.RUNNING || stateUpdaterEnabled) { Review Comment: I agree with the error states and I will check for those. A stream thread in `CREATED` would never reach this code because in `run()` the state is either set to `STARTING` or the stream thread is stopped. I think the state `STARTING` is OK, since with `STARTING` the loop should be a no-op since there would not be any tasks to process. -- 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