nicoweidner commented on a change in pull request #16165:
URL: https://github.com/apache/flink/pull/16165#discussion_r657034096



##########
File path: 
flink-core/src/main/java/org/apache/flink/configuration/AkkaOptions.java
##########
@@ -39,14 +42,24 @@
                                     + "memory footprint.");
 
     /** Timeout for akka ask calls. */
-    public static final ConfigOption<String> ASK_TIMEOUT =
+    public static final ConfigOption<Duration> ASK_TIMEOUT_DURATION =
             ConfigOptions.key("akka.ask.timeout")
-                    .stringType()
-                    .defaultValue("10 s")
+                    .durationType()
+                    .defaultValue(Duration.ofSeconds(10))
                     .withDescription(
                             "Timeout used for all futures and blocking Akka 
calls. If Flink fails due to timeouts then you"
                                     + " should try to increase this value. 
Timeouts can be caused by slow machines or a congested network. The"
                                     + " timeout value requires a time-unit 
specifier (ms/s/min/h/d).");

Review comment:
       I see, thanks!




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


Reply via email to