Skip to content

Commit 3fa4ce5

Browse files
committed
fix test compile
1 parent d6bbfb1 commit 3fa4ce5

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

core/src/test/scala/org/apache/spark/deploy/DecommissionWorkerSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class DecommissionWorkerSuite
5757
override def beforeEach(): Unit = {
5858
super.beforeEach()
5959
masterAndWorkerConf = new SparkConf()
60-
.set(config.Worker.DECOMMISSION_ENABLED, true)
60+
.set(config.DECOMMISSION_ENABLED, true)
6161
masterAndWorkerSecurityManager = new SecurityManager(masterAndWorkerConf)
6262
masterRpcEnv = RpcEnv.create(
6363
Master.SYSTEM_NAME,

core/src/test/scala/org/apache/spark/deploy/client/AppClientSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class AppClientSuite
5959
*/
6060
override def beforeAll(): Unit = {
6161
super.beforeAll()
62-
conf = new SparkConf().set(config.Worker.DECOMMISSION_ENABLED.key, "true")
62+
conf = new SparkConf().set(config.DECOMMISSION_ENABLED.key, "true")
6363
securityManager = new SecurityManager(conf)
6464
masterRpcEnv = RpcEnv.create(Master.SYSTEM_NAME, "localhost", 0, conf, securityManager)
6565
workerRpcEnvs = (0 until numWorkers).map { i =>

core/src/test/scala/org/apache/spark/scheduler/WorkerDecommissionSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class WorkerDecommissionSuite extends SparkFunSuite with LocalSparkContext {
3232

3333
override def beforeEach(): Unit = {
3434
val conf = new SparkConf().setAppName("test").setMaster("local")
35-
.set(config.Worker.DECOMMISSION_ENABLED, true)
35+
.set(config.DECOMMISSION_ENABLED, true)
3636

3737
sc = new SparkContext("local-cluster[2, 1, 1024]", "test", conf)
3838
}

core/src/test/scala/org/apache/spark/storage/BlockManagerDecommissionIntegrationSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class BlockManagerDecommissionIntegrationSuite extends SparkFunSuite with LocalS
6565
val migrateDuring = whenToDecom != JobEnded
6666
val master = s"local-cluster[${numExecs}, 1, 1024]"
6767
val conf = new SparkConf().setAppName("test").setMaster(master)
68-
.set(config.Worker.DECOMMISSION_ENABLED, true)
68+
.set(config.DECOMMISSION_ENABLED, true)
6969
.set(config.STORAGE_DECOMMISSION_ENABLED, true)
7070
.set(config.STORAGE_DECOMMISSION_RDD_BLOCKS_ENABLED, persist)
7171
.set(config.STORAGE_DECOMMISSION_SHUFFLE_BLOCKS_ENABLED, shuffle)

0 commit comments

Comments
 (0)