Skip to content
Snippets Groups Projects
Commit 3c7a9bae authored by CodingCat's avatar CodingCat Committed by Reynold Xin
Browse files

SPARK-1523: improve the readability of code in AkkaUtil

Actually it is separated from https://github.com/apache/spark/pull/85 as suggested by @rxin

compare

https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/util/AkkaUtils.scala#L122

and

https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/util/AkkaUtils.scala#L117

the first one use get and then toLong, the second one getLong....better to make them consistent

very very small fix........

Author: CodingCat <zhunansjtu@gmail.com>

Closes #434 from CodingCat/SPARK-1523 and squashes the following commits:

0e86f3f [CodingCat] improve the readability of code in AkkaUtil
parent 8aa1f4c4
No related branches found
No related tags found
No related merge requests found
......@@ -119,7 +119,7 @@ private[spark] object AkkaUtils extends Logging {
/** Returns the default Spark timeout to use for Akka remote actor lookup. */
def lookupTimeout(conf: SparkConf): FiniteDuration = {
Duration.create(conf.get("spark.akka.lookupTimeout", "30").toLong, "seconds")
Duration.create(conf.getLong("spark.akka.lookupTimeout", 30), "seconds")
}
/** Returns the configured max frame size for Akka messages in bytes. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment