arnabnandy7 commented on code in PR #22864:
URL: https://github.com/apache/kafka/pull/22864#discussion_r4523917780


##########
streams/src/main/java/org/apache/kafka/streams/processor/internals/DefaultStateUpdater.java:
##########
@@ -448,7 +446,7 @@ private void 
addToExceptionsAndFailedTasksThenRemoveFromPausedTasks(final Except
                 exceptionsAndFailedTasks.add(exceptionAndTask);
                 pausedTasks.remove(exceptionAndTask.task().id());
                 if (exceptionAndTask.task().isActive()) {

Review Comment:
   Addressed the inline comments as well. I reordered the reader-state check to 
avoid scanning the updating tasks unnecessarily, queued both standby tasks 
before starting the updater to remove the scheduling race, and removed the 
no-op transition check when removing a task from `pausedTasks`.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to