diff options
author | WangTaoTheTonic <barneystinson@aliyun.com> | 2014-09-17 21:59:23 -0700 |
---|---|---|
committer | Patrick Wendell <pwendell@gmail.com> | 2014-09-17 21:59:23 -0700 |
commit | 3f169bfe3c322bf4344e13276dbbe34279b59ad0 (patch) | |
tree | a7c125bf5511d7bc1756cad8b94f535813198edc /core/src/main | |
parent | 1147973f1c7713013c7c0ca414482b511a730475 (diff) | |
download | spark-3f169bfe3c322bf4344e13276dbbe34279b59ad0.tar.gz spark-3f169bfe3c322bf4344e13276dbbe34279b59ad0.tar.bz2 spark-3f169bfe3c322bf4344e13276dbbe34279b59ad0.zip |
[SPARK-3565]Fix configuration item not consistent with document
https://issues.apache.org/jira/browse/SPARK-3565
"spark.ports.maxRetries" should be "spark.port.maxRetries". Make the configuration keys in document and code consistent.
Author: WangTaoTheTonic <barneystinson@aliyun.com>
Closes #2427 from WangTaoTheTonic/fixPortRetries and squashes the following commits:
c178813 [WangTaoTheTonic] Use blank lines trigger Jenkins
646f3fe [WangTaoTheTonic] also in SparkBuild.scala
3700dba [WangTaoTheTonic] Fix configuration item not consistent with document
Diffstat (limited to 'core/src/main')
-rw-r--r-- | core/src/main/scala/org/apache/spark/util/Utils.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/main/scala/org/apache/spark/util/Utils.scala b/core/src/main/scala/org/apache/spark/util/Utils.scala index c76b7af184..ed06384432 100644 --- a/core/src/main/scala/org/apache/spark/util/Utils.scala +++ b/core/src/main/scala/org/apache/spark/util/Utils.scala @@ -1382,15 +1382,15 @@ private[spark] object Utils extends Logging { } /** - * Default number of retries in binding to a port. + * Default maximum number of retries when binding to a port before giving up. */ val portMaxRetries: Int = { if (sys.props.contains("spark.testing")) { // Set a higher number of retries for tests... - sys.props.get("spark.ports.maxRetries").map(_.toInt).getOrElse(100) + sys.props.get("spark.port.maxRetries").map(_.toInt).getOrElse(100) } else { Option(SparkEnv.get) - .flatMap(_.conf.getOption("spark.ports.maxRetries")) + .flatMap(_.conf.getOption("spark.port.maxRetries")) .map(_.toInt) .getOrElse(16) } |