Github user tillrohrmann commented on a diff in the pull request:
https://github.com/apache/flink/pull/1954#discussion_r70045487
--- Diff:
flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/restart/FixedDelayRestartStrategy.java
---
@@ -108,22 +87,7 @@ public static FixedDelayRestartStrategyFactory
createFactory(Configuration confi
timeoutString
);
- long delay;
-
- try {
- delay = Duration.apply(delayString).toMillis();
- } catch (NumberFormatException nfe) {
- if (delayString.equals(timeoutString)) {
- throw new Exception("Invalid config value for "
+
-
ConfigConstants.AKKA_WATCH_HEARTBEAT_PAUSE + ": " + timeoutString +
- ". Value must be a valid duration (such
as '10 s' or '1 min')");
- } else {
- throw new Exception("Invalid config value for "
+
-
ConfigConstants.EXECUTION_RETRY_DELAY_KEY + ": " + delayString +
- ". Value must be a valid duration (such
as '100 milli' or '10 s')");
- }
- }
-
--- End diff --
Oh yes you're right @fijolekProjects. We use the wrong `ConfigConstant` in
the exception message. It should be
`ConfigConstant.RESTART_STRATEGY_FIXED_DELAY_DELAY` instead of
`ConfigConstant.EXECUTION_RETRY_DELAY_KEY`. Could you fix that?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---