You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Efrat19 (via GitHub)" <gi...@apache.org> on 2026/02/12 08:45:06 UTC

Re: [PR] [FLINK-38939][runtime] Pause sources until the 1st checkpoint to prioritize processing recovered records [flink]

Efrat19 commented on code in PR #27440:
URL: https://github.com/apache/flink/pull/27440#discussion_r2797528124


##########
flink-runtime/src/main/java/org/apache/flink/runtime/jobgraph/tasks/CheckpointCoordinatorConfiguration.java:
##########
@@ -281,6 +296,17 @@ public static CheckpointCoordinatorConfigurationBuilder builder() {
         return new CheckpointCoordinatorConfigurationBuilder();
     }
 
+    public long getInitialTriggeringDelay() {
+        return pauseSourcesUntilFirstCheckpoint
+                ? ThreadLocalRandom.current()
+                        .nextLong(minPauseBetweenCheckpoints, minPauseBetweenCheckpoints * 2 + 1)

Review Comment:
   nit: Maybe add comment / a variable to reason about this math?



-- 
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: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org