pnowojski commented on a change in pull request #9853: 
[FLINK-13904][checkpointing] Avoid competition of checkpoint triggering
URL: https://github.com/apache/flink/pull/9853#discussion_r335434198
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/CheckpointCoordinator.java
 ##########
 @@ -1306,10 +1312,8 @@ private long getRandomInitDelay() {
                return 
ThreadLocalRandom.current().nextLong(minPauseBetweenCheckpoints, baseInterval + 
1L);
        }
 
-       private ScheduledFuture<?> scheduleTriggerWithDelay(long initDelay) {
-               return timer.scheduleAtFixedRate(
-                       new ScheduledTrigger(),
-                       initDelay, baseInterval, TimeUnit.MILLISECONDS);
+       private ScheduledFuture<?> scheduleTriggerWithDelay(long delay) {
+               return timer.schedule(new ScheduledTrigger(), delay, 
TimeUnit.MILLISECONDS);
 
 Review comment:
   What is the benefit/purpose of this change and this commit (`Manually 
schedule periodic checkpoint trigger instead of scheduleAtFixedRate`) as a 
whole?

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