akalash commented on a change in pull request #15959: URL: https://github.com/apache/flink/pull/15959#discussion_r636802512
########## File path: flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/CheckpointCoordinator.java ########## @@ -1599,6 +1603,33 @@ private OptionalLong restoreLatestCheckpointedStateInternal( } } + private Map<OperatorID, OperatorState> extractOperatorStates(CompletedCheckpoint checkpoint) { + Map<OperatorID, OperatorState> operatorStates = checkpoint.getOperatorStates(); Review comment: Yes, it makes sense to create a new map rather than modify an existing one. -- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org