rkhachatryan commented on a change in pull request #16784:
URL: https://github.com/apache/flink/pull/16784#discussion_r687578029



##########
File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/PendingCheckpoint.java
##########
@@ -487,8 +487,8 @@ private void fulfillFullyFinishedOperatorStates() {
                 OperatorState operatorState =
                         
operatorStates.get(operatorID.getGeneratedOperatorID());
                 checkState(
-                        operatorState == null,
-                        "There should be no states reported for fully finished 
operators");
+                        operatorState == null || 
operatorState.getSubtaskStates().size() == 0,

Review comment:
       nit: use `isEmpty`? move the check into the `operatorState` (as e.g. 
`hasSubtaskState` method)




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