StefanRRichter commented on a change in pull request #7009: [FLINK-10712] 
Support to restore state when using RestartPipelinedRegionStrategy
URL: https://github.com/apache/flink/pull/7009#discussion_r245653474
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/CheckpointCoordinator.java
 ##########
 @@ -985,6 +986,67 @@ int getNumScheduledTasks() {
         * restore from.
         * @param allowNonRestoredState Allow checkpoint state that cannot be 
mapped
         * to any job vertex in tasks.
+        */
+       public boolean restoreLatestCheckpointedState(
+                       Map<JobVertexID, ExecutionJobVertex> tasks,
+                       boolean errorIfNoCheckpoint,
+                       boolean allowNonRestoredState) throws Exception {
+
+               Map<JobVertexID, BitSet> executionJobVertexIndices = new 
HashMap<>(tasks.size());
+               tasks.entrySet().forEach(task -> {
 
 Review comment:
   You could use `map.forEach` directly instead of `map.entrySet().forEach`.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to