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_r286775875
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/CheckpointCoordinator.java
 ##########
 @@ -202,31 +201,33 @@ public CheckpointCoordinator(
                        StateBackend checkpointStateBackend,
                        Executor executor,
                        SharedStateRegistryFactory sharedStateRegistryFactory,
-                       boolean isPreferCheckpointForRecovery) {
+                       CheckpointFailureManager failureManager) {
 
                // sanity checks
                checkNotNull(checkpointStateBackend);
-               checkArgument(baseInterval > 0, "Checkpoint base interval must 
be larger than zero");
-               checkArgument(checkpointTimeout >= 1, "Checkpoint timeout must 
be larger than zero");
-               checkArgument(minPauseBetweenCheckpoints >= 0, 
"minPauseBetweenCheckpoints must be >= 0");
-               checkArgument(maxConcurrentCheckpointAttempts >= 1, 
"maxConcurrentCheckpointAttempts must be >= 1");
+               checkArgument(chkConfig.getCheckpointInterval() > 0, 
"Checkpoint base interval must be larger than zero");
 
 Review comment:
   The check here can also merge into `CheckpointCoordinatorConfiguration` 

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