lucasbru commented on code in PR #13318:
URL: https://github.com/apache/kafka/pull/13318#discussion_r1124916956


##########
streams/src/main/java/org/apache/kafka/streams/processor/internals/DefaultStateUpdater.java:
##########
@@ -312,16 +305,20 @@ private void 
addToExceptionsAndFailedTasksThenClearUpdatingTasks(final Exception
             updatingTasks.clear();
         }
 
-        private void waitIfAllChangelogsCompletelyRead() throws 
InterruptedException {
-            if (isRunning.get() && changelogReader.allChangelogsCompleted()) {
-                tasksAndActionsLock.lock();
-                try {
-                    while (tasksAndActions.isEmpty() && 
!isTopologyResumed.get()) {
-                        tasksAndActionsCondition.await();
-                    }
-                } finally {
-                    tasksAndActionsLock.unlock();
+        private void waitIfAllChangelogsCompletelyRead() {
+            tasksAndActionsLock.lock();

Review Comment:
   Nit: the name `tasksAndActionsLock/Condition` is probably not very adequate 
anymore. But we don't need to change it in this PR.



-- 
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

Reply via email to