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

 ##########
 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) {
+                       minPauseBetweenCheckpoints < 0 || 
maxConcurrentCheckpoints < 1 ||
 
 Review comment:
   Why do we need `tolerableCpFailureNumber > Integer.MAX_VALUE`, I think an 
int can never bigger than `Integer.MAX_VALUE`

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