pnowojski commented on a change in pull request #12186:
URL: https://github.com/apache/flink/pull/12186#discussion_r426157143



##########
File path: 
flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/OperatorChain.java
##########
@@ -262,7 +262,9 @@ public void prepareSnapshotPreBarrier(long checkpointId) 
throws Exception {
                // go forward through the operator chain and tell each operator
                // to prepare the checkpoint
                for (StreamOperatorWrapper<?, ?> operatorWrapper : 
getAllOperators()) {
-                       
operatorWrapper.getStreamOperator().prepareSnapshotPreBarrier(checkpointId);
+                       if (!operatorWrapper.isClosed()) {
+                               
operatorWrapper.getStreamOperator().prepareSnapshotPreBarrier(checkpointId);
+                       }

Review comment:
       Maybe in the future?




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


Reply via email to