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


##########
streams/src/main/java/org/apache/kafka/streams/processor/internals/StoreChangelogReader.java:
##########
@@ -494,7 +503,7 @@ public Map<TopicPartition, Long> 
logicalChangelogEndOffsets() {
     public long restore(final Map<TaskId, Task> tasks) {
         initializeChangelogs(tasks, registeredChangelogs());
 
-        if (!activeRestoringChangelogs().isEmpty() && state == 
ChangelogReaderState.STANDBY_UPDATING) {
+        if (!activeRestoringChangelogs(tasks).isEmpty() && state == 
ChangelogReaderState.STANDBY_UPDATING) {
             throw new IllegalStateException("Should not be in standby updating 
state if there are still un-completed active changelogs");

Review Comment:
   addressed



##########
streams/src/main/java/org/apache/kafka/streams/processor/internals/StoreChangelogReader.java:
##########
@@ -448,6 +448,15 @@ private Set<TopicPartition> activeRestoringChangelogs() {
             .collect(Collectors.toSet());
     }
 
+    private Set<TopicPartition> activeRestoringChangelogs(final Map<TaskId, 
Task> tasks) {

Review Comment:
   done



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