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


##########
streams/src/test/java/org/apache/kafka/streams/processor/internals/DefaultStateUpdaterTest.java:
##########
@@ -1399,9 +1432,11 @@ public void shouldIdleWhenAllTasksPaused() throws 
Exception {
     public void shouldResumeStandbyTask() throws Exception {
         final StandbyTask task = standbyTask(TASK_0_0, 
Set.of(TOPIC_PARTITION_A_0)).inState(State.RUNNING).build();
         shouldResumeStatefulTask(task);
+        assertEquals(Optional.empty(), stateUpdater.fatalException());
         // shutdown ensures that the test does not end before changelog reader 
methods verified below are called
         stateUpdater.shutdown(Duration.ofMinutes(1));
         verify(changelogReader, times(2)).transitToUpdateStandby();
+        verify(changelogReader, times(2)).enforceRestoreActive();

Review Comment:
   Updated the comments to clarify that shutdown cleanup contributes the second 
`enforceRestoreActive` call. I made the same clarification in 
`shouldPauseActiveTaskAndTransitToUpdateStandby`.



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