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


##########
flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/CheckpointCoordinator.java:
##########
@@ -1999,6 +2000,29 @@ public long getCheckpointTimeout() {
         return checkpointTimeout;
     }
 
+    /**
+     * Returns the remaining {@link Duration} until {@code 
minPauseBetweenCheckpoints} is satisfied
+     * for a new active-trigger checkpoint, computed from the time elapsed 
since the last completed
+     * checkpoint (or from the coordinator clock's epoch when no checkpoint 
has completed yet —
+     * which is normally far in the past in production). {@link Duration#ZERO} 
means the trigger can
+     * fire immediately.
+     *
+     * <p>Returns {@link Optional#empty()} as a fallback if a checkpoint is 
already in flight
+     * (triggering or pending), in which case no active trigger should be 
scheduled.
+     *
+     * <p>All checks are made under the coordinator lock.

Review Comment:
   that's an implementation detail that doesn't need to be exposed via JavaDoc



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