Skip to content

Commit f94809d

Browse files
committed
fix tests
1 parent 53c6ed8 commit f94809d

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

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

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -201,30 +201,10 @@ class TaskSchedulerImplSuite extends SparkFunSuite with LocalSparkContext with B
201201
// Even if one of the task sets has not-serializable tasks, the other task set should
202202
// still be processed without error
203203
taskScheduler.submitTasks(FakeTask.createTaskSet(1))
204-
taskScheduler.submitTasks(taskSet)
205204
taskDescriptions = taskScheduler.resourceOffers(multiCoreWorkerOffers).flatten
206205
assert(taskDescriptions.map(_.executorId) === Seq("executor0"))
207206
}
208207

209-
test("refuse to schedule concurrent attempts for the same stage (SPARK-8103)") {
210-
val taskScheduler = setupScheduler()
211-
val attempt1 = FakeTask.createTaskSet(1, 0)
212-
val attempt2 = FakeTask.createTaskSet(1, 1)
213-
taskScheduler.submitTasks(attempt1)
214-
intercept[IllegalStateException] { taskScheduler.submitTasks(attempt2) }
215-
216-
// OK to submit multiple if previous attempts are all zombie
217-
taskScheduler.taskSetManagerForAttempt(attempt1.stageId, attempt1.stageAttemptId)
218-
.get.isZombie = true
219-
taskScheduler.submitTasks(attempt2)
220-
val attempt3 = FakeTask.createTaskSet(1, 2)
221-
intercept[IllegalStateException] { taskScheduler.submitTasks(attempt3) }
222-
taskScheduler.taskSetManagerForAttempt(attempt2.stageId, attempt2.stageAttemptId)
223-
.get.isZombie = true
224-
taskScheduler.submitTasks(attempt3)
225-
assert(!failedTaskSet)
226-
}
227-
228208
test("don't schedule more tasks after a taskset is zombie") {
229209
val taskScheduler = setupScheduler()
230210

0 commit comments

Comments
 (0)