cadonna commented on code in PR #14214:
URL: https://github.com/apache/kafka/pull/14214#discussion_r1294745792


##########
streams/src/main/java/org/apache/kafka/streams/processor/internals/TaskManager.java:
##########
@@ -838,15 +841,15 @@ private void transitRestoredTaskToRunning(final Task task,
 
     private void addTasksToStateUpdater() {
         final Map<TaskId, RuntimeException> taskExceptions = new 
LinkedHashMap<>();
-        for (final Task task : tasks.drainPendingTaskToInit()) {
+        for (final Task task : tasks.drainPendingTasksToInit()) {
             try {
                 task.initializeIfNeeded();
                 stateUpdater.add(task);
             } catch (final LockException lockException) {
                 // The state directory may still be locked by another thread, 
when the rebalance just happened.
                 // Retry in the next iteration.
                 log.info("Encountered lock exception. Reattempting locking the 
state in the next iteration.", lockException);
-                tasks.addPendingTaskToInit(Collections.singleton(task));
+                tasks.addPendingTasksToInit(Collections.singleton(task));

Review Comment:
   This is the code that required the fix.



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