zhijiangW commented on a change in pull request #11351: [FLINK-16404][runtime] 
Avoid caching buffers for blocked input channels before barrier alignment
URL: https://github.com/apache/flink/pull/11351#discussion_r406713682
 
 

 ##########
 File path: 
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/graph/StreamingJobGraphGenerator.java
 ##########
 @@ -883,16 +883,7 @@ private void configureCheckpointing() {
 
                CheckpointingMode mode = cfg.getCheckpointingMode();
 
-               boolean isExactlyOnce;
-               if (mode == CheckpointingMode.EXACTLY_ONCE) {
-                       isExactlyOnce = true;
-               } else if (mode == CheckpointingMode.AT_LEAST_ONCE) {
-                       isExactlyOnce = false;
-               } else {
-                       throw new IllegalStateException("Unexpected 
checkpointing mode. " +
-                               "Did not expect there to be another 
checkpointing mode besides " +
-                               "exactly-once or at-least-once.");
-               }
+               boolean isExactlyOnce = cfg.isCheckpointingEnabled() && mode == 
CheckpointingMode.EXACTLY_ONCE;
 
 Review comment:
   this change worths a separate hotfix commit

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


With regards,
Apache Git Services

Reply via email to