LuciferYang commented on a change in pull request #35477:
URL: https://github.com/apache/spark/pull/35477#discussion_r805099303
##########
File path:
core/src/test/scala/org/apache/spark/SparkContextSchedulerCreationSuite.scala
##########
@@ -32,23 +32,18 @@ class SparkContextSchedulerCreationSuite
def noOp(taskSchedulerImpl: TaskSchedulerImpl): Unit = {}
def createTaskScheduler(master: String)(body: TaskSchedulerImpl => Unit =
noOp): Unit =
- createTaskScheduler(master, "client")(body)
-
- def createTaskScheduler(master: String, deployMode: String)(
- body: TaskSchedulerImpl => Unit): Unit =
- createTaskScheduler(master, deployMode, new SparkConf())(body)
+ createTaskScheduler(master, new SparkConf())(body)
def createTaskScheduler(
master: String,
- deployMode: String,
conf: SparkConf)(body: TaskSchedulerImpl => Unit): Unit = {
// Create local SparkContext to setup a SparkEnv. We don't actually want
to start() the
// real schedulers, so we don't want to create a full SparkContext with
the desired scheduler.
sc = new SparkContext("local", "test", conf)
val createTaskSchedulerMethod =
PrivateMethod[Tuple2[SchedulerBackend,
TaskScheduler]](Symbol("createTaskScheduler"))
val (_, sched) =
- SparkContext invokePrivate createTaskSchedulerMethod(sc, master,
deployMode)
+ SparkContext invokePrivate createTaskSchedulerMethod(sc, master)
Review comment:
Change this file because the reflection call to private method
`SparkContext.createTaskScheduler` here
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]