GJL commented on a change in pull request #9637: [FLINK-13884] Set default 
delay for restart strategies to 1s
URL: https://github.com/apache/flink/pull/9637#discussion_r322586396
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/restart/NoOrFixedIfCheckpointingEnabledRestartStrategyFactory.java
 ##########
 @@ -18,12 +18,14 @@
 
 package org.apache.flink.runtime.executiongraph.restart;
 
+import java.time.Duration;
+
 /**
  * Default restart strategy that resolves either to {@link NoRestartStrategy} 
or {@link FixedDelayRestartStrategy}
  * depending if checkpointing was enabled.
  */
 public class NoOrFixedIfCheckpointingEnabledRestartStrategyFactory extends 
RestartStrategyFactory {
-       private static final long DEFAULT_RESTART_DELAY = 0;
+       private static final long DEFAULT_RESTART_DELAY = 
Duration.ofSeconds(1L).toMillis();
 
 Review comment:
   Did you ultimately decide against it? @tillrohrmann 

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to