gaoyunhaii commented on a change in pull request #14754:
URL: https://github.com/apache/flink/pull/14754#discussion_r571815521
##########
File path:
flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/PendingCheckpoint.java
##########
@@ -308,6 +316,25 @@ public CompletedCheckpoint finalizeCheckpoint(
// make sure we fulfill the promise with an exception if something
fails
try {
+ // Completes the operator state for the fully finished
operators
+ for (ExecutionJobVertex jobVertex :
checkpointBrief.getFullyFinishedJobVertex()) {
+ for (OperatorIDPair operatorID :
jobVertex.getOperatorIDs()) {
+ OperatorState operatorState =
+
operatorStates.get(operatorID.getGeneratedOperatorID());
+
+ if (operatorState == null) {
+ operatorState =
+ new OperatorState(
+
operatorID.getGeneratedOperatorID(),
+ jobVertex.getParallelism(),
+ jobVertex.getMaxParallelism());
+
operatorStates.put(operatorID.getGeneratedOperatorID(), operatorState);
+ }
+
+ operatorState.markedFullyFinished();
Review comment:
It should be always null, I add the check for it.
----------------------------------------------------------------
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:
[email protected]