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


##########
streams/src/main/java/org/apache/kafka/streams/processor/internals/StoreChangelogReader.java:
##########
@@ -1018,6 +1042,8 @@ private void initializeChangelogs(final Map<TaskId, Task> 
tasks,
             }
         }
 
+        removeStandbyChangelogsWithoutCommittedOffset(newPartitionsToRestore, 
newPartitionsToFindCommittedOffset, committedOffsets);

Review Comment:
   As long as the lookup doesn't return the partition, this retries on every 
`restore()` call. If nothing else is restoring, `restore()` returns without 
polling and the state updater doesn't wait either, so for example a partition 
left out because of UNSTABLE_OFFSET_COMMIT gets `listConsumerGroupOffsets` in a 
tight loop until the transaction completes. Active changelogs already behave 
like this, so maybe it's fine, but should we throttle the standby retry, e.g. 
by the commit interval like the periodic limit offset update?



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