aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorAndrew Or <andrew@databricks.com>2016-02-04 12:04:54 -0800
committerAndrew Or <andrew@databricks.com>2016-02-04 12:04:54 -0800
commitc756bda477f458ba4aad7fdb2026263507e0ad9b (patch)
treea8fd76be923e12042e77a9849f9d281ceebbf307 /core
parent33212cb9a13a6012b4c19ccfc0fb3db75de304da (diff)
downloadspark-c756bda477f458ba4aad7fdb2026263507e0ad9b.tar.gz
spark-c756bda477f458ba4aad7fdb2026263507e0ad9b.tar.bz2
spark-c756bda477f458ba4aad7fdb2026263507e0ad9b.zip
[SPARK-12330][MESOS][HOTFIX] Rename timeout config
The config already describes time and accepts a general format that is not restricted to ms. This commit renames the internal config to use a format that's consistent in Spark.
Diffstat (limited to 'core')
-rw-r--r--core/src/main/scala/org/apache/spark/scheduler/cluster/mesos/CoarseMesosSchedulerBackend.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/main/scala/org/apache/spark/scheduler/cluster/mesos/CoarseMesosSchedulerBackend.scala b/core/src/main/scala/org/apache/spark/scheduler/cluster/mesos/CoarseMesosSchedulerBackend.scala
index 722293bb7a..8ed7553258 100644
--- a/core/src/main/scala/org/apache/spark/scheduler/cluster/mesos/CoarseMesosSchedulerBackend.scala
+++ b/core/src/main/scala/org/apache/spark/scheduler/cluster/mesos/CoarseMesosSchedulerBackend.scala
@@ -62,8 +62,8 @@ private[spark] class CoarseMesosSchedulerBackend(
// Maximum number of cores to acquire (TODO: we'll need more flexible controls here)
val maxCores = conf.get("spark.cores.max", Int.MaxValue.toString).toInt
- private[this] val shutdownTimeoutMS = conf.getTimeAsMs("spark.mesos.coarse.shutdown.ms", "10s")
- .ensuring(_ >= 0, "spark.mesos.coarse.shutdown.ms must be >= 0")
+ private[this] val shutdownTimeoutMS = conf.getTimeAsMs("spark.mesos.coarse.shutdownTimeout", "10s")
+ .ensuring(_ >= 0, "spark.mesos.coarse.shutdownTimeout must be >= 0")
// Synchronization protected by stateLock
private[this] var stopCalled: Boolean = false