dmvk commented on a change in pull request #16652:
URL: https://github.com/apache/flink/pull/16652#discussion_r686811479



##########
File path: 
flink-runtime/src/test/java/org/apache/flink/runtime/checkpoint/CheckpointCoordinatorRestoringTest.java
##########
@@ -208,7 +211,12 @@ public void testRestoreLatestCheckpointedState() throws 
Exception {
         tasks.add(jobVertex1);
         tasks.add(jobVertex2);
 
-        assertTrue(coord.restoreLatestCheckpointedStateToAll(tasks, false));
+        // set up the coordinator and validate the initial state
+        final CompletedCheckpointStore secondStore =
+                new EmbeddedCompletedCheckpointStore(1, 
store.getSuspendedCheckpoints());
+        final CheckpointCoordinator secondCoordinator =
+                
coordinatorBuilder.setCompletedCheckpointStore(secondStore).build();
+        
assertTrue(secondCoordinator.restoreLatestCheckpointedStateToAll(tasks, false));

Review comment:
       refactored & split in two "stages"
   




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