Samrat002 commented on code in PR #27921:
URL: https://github.com/apache/flink/pull/27921#discussion_r3223425696


##########
flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/CheckpointCoordinator.java:
##########
@@ -1999,6 +1999,21 @@ public long getCheckpointTimeout() {
         return checkpointTimeout;
     }
 
+    /**
+     * Returns {@code -1} if a checkpoint is already in flight, otherwise the 
remaining time (in ms)
+     * until {@code minPauseBetweenCheckpoints} is satisfied ({@code 0} = 
trigger now). All checks
+     * are made under the coordinator lock.
+     */
+    public long getActiveCheckpointTriggerDelay() {
+        synchronized (lock) {
+            if (isTriggering || !pendingCheckpoints.isEmpty()) {
+                return -1L;
+            }
+            final long elapsed = clock.relativeTimeMillis() - 
lastCheckpointCompletionRelativeTime;

Review Comment:
   done



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to