mjsax commented on code in PR #23991:
URL: https://github.com/apache/kafka/pull/23991#discussion_r4557706921


##########
streams/src/test/java/org/apache/kafka/streams/processor/internals/StoreChangelogReaderTest.java:
##########
@@ -388,7 +388,10 @@ public void 
shouldInitializeChangelogAndCheckForCompletion(final Task.TaskType t
         setupStore();
         @SuppressWarnings("unchecked")
         final Map<TaskId, Task> mockTasks = mock(Map.class);
-        when(mockTasks.get(null)).thenReturn(mock(Task.class));
+        // the reader starts out restoring actives, so it never restores the 
standby changelog

Review Comment:
   Ack. But is actually exposes some independent issue... We actually call 
`onUpdateStart` when we create/register the standby, even if we are in 
active-restoring mode, even if we don't really start to process the standby 
task quiet yet
   
   And when we switch from standby-updating to active-restoring, effectively 
pausing standbys, we don' t call the standby listener either... would be nice 
to have some new value for `onUpdateSuspended`, and trigger a call...  Filed 
https://issues.apache.org/jira/browse/KAFKA-21488



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