yanghua commented on a change in pull request #8322: [FLINK-12364] Introduce a 
CheckpointFailureManager to centralized manage checkpoint failure
URL: https://github.com/apache/flink/pull/8322#discussion_r293623628
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/jobgraph/tasks/CheckpointCoordinatorConfiguration.java
 ##########
 @@ -63,11 +65,13 @@ public CheckpointCoordinatorConfiguration(
                        int maxConcurrentCheckpoints,
                        CheckpointRetentionPolicy checkpointRetentionPolicy,
                        boolean isExactlyOnce,
-                       boolean isPerfetCheckpointForRecovery) {
+                       boolean isPerfetCheckpointForRecovery,
+                       int tolerableCpFailureNumber) {
 
                // sanity checks
-               if (checkpointInterval < 1 || checkpointTimeout < 1 ||
-                       minPauseBetweenCheckpoints < 0 || 
maxConcurrentCheckpoints < 1) {
+               if (checkpointInterval < 10 || checkpointTimeout < 10 ||
 
 Review comment:
   Yes, I have a good reason. `ExecutionGraph#enableCheckpointing`(see 
[here](https://github.com/apache/flink/blob/master/flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/ExecutionGraph.java#L536))
 consider the illegal value is (`< 10`) and the [test 
case](https://github.com/apache/flink/blob/master/flink-tests/src/test/java/org/apache/flink/test/checkpointing/ZooKeeperHighAvailabilityITCase.java#L189)
 also know this. So we'd better have the same criterion.
   
   From a realistic point of view, I also think that 10 is a meaningful value. 
If the interval is allowed to be 1 ms, the frequency is too high and therefore 
has no practical significance.

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


With regards,
Apache Git Services

Reply via email to