wcarlson5 commented on a change in pull request #10565: URL: https://github.com/apache/kafka/pull/10565#discussion_r617857575
########## File path: streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamTask.java ########## @@ -667,8 +668,15 @@ public boolean isProcessable(final long wallClockTime) { // thus, the task is not processable, even if there is available data in the record queue return false; } - - return partitionGroup.readyToProcess(wallClockTime); + final boolean readyToProcess = partitionGroup.readyToProcess(wallClockTime); + if (!readyToProcess) { + if (!timeCurrentIdlingStarted.isPresent()) { + timeCurrentIdlingStarted = Optional.of(wallClockTime); + } + } else { + timeCurrentIdlingStarted = Optional.empty(); Review comment: Yes that sounds like what I was thinking -- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org