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


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

Review Comment:
   Updated the PR description to cover the relaxed guard, explicit pausing of 
retained active changelogs, and the new reader tests. I also replaced the stale 
testing section with commands covering both affected test classes.



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