zhuzhurk commented on a change in pull request #9745: [FLINK-14070] [runtime] 
Use TimeUtils to parse duration configs in flink-runtime
URL: https://github.com/apache/flink/pull/9745#discussion_r327002384
 
 

 ##########
 File path: 
flink-runtime/src/main/scala/org/apache/flink/runtime/akka/AkkaUtils.scala
 ##########
 @@ -49,8 +51,6 @@ import scala.language.postfixOps
 object AkkaUtils {
 
 Review comment:
   The parsing of Akka configs are not replaced by TimeUtils.parseDuration(..), 
since they are directly used for ActorSystem creation.
   The only exception is "akka.ask.timeout" which is also widely used as Flink 
RPC timeout config. So I parsed it with TimeUtils when it is used by Flink 
components and keep it parsed by scala Duration when used by Akka (in 
AkkaUtils#getRemoteAkkaConfig).
   The configs "akka.lookup.timeout" and "akka.client.timeout" are actually 
only used by Flink components so the parsing logics for them are replaced.

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