You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "yunfengzhou-hub (via GitHub)" <gi...@apache.org> on 2023/07/19 08:49:35 UTC

[GitHub] [flink] yunfengzhou-hub commented on a diff in pull request #22931: [FLINK-32514] Support configuring checkpointing interval during process backlog

yunfengzhou-hub commented on code in PR #22931:
URL: https://github.com/apache/flink/pull/22931#discussion_r1267760838


##########
flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/CheckpointCoordinator.java:
##########
@@ -2079,11 +2149,19 @@ private final class ScheduledTrigger implements Runnable {
 
         @Override
         public void run() {
+            long currentTime = clock.relativeTimeMillis();
+            if (lastCheckpointTriggeringRelativeTime != NO_CHECKPOINT
+                    && currentTime - lastCheckpointTriggeringRelativeTime < baseInterval) {

Review Comment:
   With the current implementation in which `lastCheckpointTriggeringRelativeTime` could be `Long.MIN_VALUE`, `currentTime - lastCheckpointTriggeringRelativeTime` could cause stack overflow.



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