diff options
author | Jeff Zhang <zjffdu@apache.org> | 2016-02-29 12:08:37 +0000 |
---|---|---|
committer | Sean Owen <srowen@percolateur.local> | 2016-02-29 12:08:37 +0000 |
commit | 99fe8993f51d3c72cd95eb0825b090dd4d4cd2cd (patch) | |
tree | fbe325bdd51ab5e321704f54e99c102707ca97fb /core/src/test | |
parent | d81a71357e24160244b6eeff028b0d9a4863becf (diff) | |
download | spark-99fe8993f51d3c72cd95eb0825b090dd4d4cd2cd.tar.gz spark-99fe8993f51d3c72cd95eb0825b090dd4d4cd2cd.tar.bz2 spark-99fe8993f51d3c72cd95eb0825b090dd4d4cd2cd.zip |
[SPARK-12994][CORE] It is not necessary to create ExecutorAllocationM…
…anager in local mode
Author: Jeff Zhang <zjffdu@apache.org>
Closes #10914 from zjffdu/SPARK-12994.
Diffstat (limited to 'core/src/test')
-rw-r--r-- | core/src/test/scala/org/apache/spark/util/UtilsSuite.scala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/src/test/scala/org/apache/spark/util/UtilsSuite.scala b/core/src/test/scala/org/apache/spark/util/UtilsSuite.scala index 7c6778b065..412c0ac9d9 100644 --- a/core/src/test/scala/org/apache/spark/util/UtilsSuite.scala +++ b/core/src/test/scala/org/apache/spark/util/UtilsSuite.scala @@ -722,6 +722,7 @@ class UtilsSuite extends SparkFunSuite with ResetSystemProperties with Logging { test("isDynamicAllocationEnabled") { val conf = new SparkConf() + conf.set("spark.master", "yarn-client") assert(Utils.isDynamicAllocationEnabled(conf) === false) assert(Utils.isDynamicAllocationEnabled( conf.set("spark.dynamicAllocation.enabled", "false")) === false) @@ -731,6 +732,8 @@ class UtilsSuite extends SparkFunSuite with ResetSystemProperties with Logging { conf.set("spark.executor.instances", "1")) === false) assert(Utils.isDynamicAllocationEnabled( conf.set("spark.executor.instances", "0")) === true) + assert(Utils.isDynamicAllocationEnabled(conf.set("spark.master", "local")) === false) + assert(Utils.isDynamicAllocationEnabled(conf.set("spark.dynamicAllocation.testing", "true"))) } test("encodeFileNameToURIRawPath") { |