File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
core/src/test/scala/org/apache/spark/scheduler Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -611,9 +611,9 @@ class DAGSchedulerSuite
611
611
612
612
// Another ResubmitFailedStages event should not result in another attempt for the map
613
613
// stage being run concurrently.
614
- // NOTE: the actual ResubmitFailedStages may get called at any time during this, shouldn't
615
- // effect anything -- our calling it just makes *SURE* it gets called between the desired event
616
- // and our check.
614
+ // NOTE: the actual ResubmitFailedStages may get called at any time during this, but it
615
+ // shouldn't effect anything -- our calling it just makes *SURE* it gets called between the
616
+ // desired event and our check.
617
617
runEvent(ResubmitFailedStages )
618
618
sc.listenerBus.waitUntilEmpty(WAIT_TIMEOUT_MILLIS )
619
619
assert(countSubmittedMapStageAttempts() === 2 )
@@ -680,7 +680,8 @@ class DAGSchedulerSuite
680
680
createFakeTaskInfo(),
681
681
null ))
682
682
683
- // Trigger resubmission of the failed map stage and finish the re-started map task.
683
+ // Running ResubmitFailedStages shouldn't result in any more attempts for the map stage, because
684
+ // the FetchFailed should have been ignored
684
685
runEvent(ResubmitFailedStages )
685
686
686
687
// The FetchFailed from the original reduce stage should be ignored.
Original file line number Diff line number Diff line change @@ -231,7 +231,7 @@ class TaskSchedulerImplSuite extends SparkFunSuite with LocalSparkContext with L
231
231
val taskDescriptions3 = taskScheduler.resourceOffers(workerOffers).flatten
232
232
assert(10 === taskDescriptions3.length)
233
233
234
- taskDescriptions3.foreach{ task =>
234
+ taskDescriptions3.foreach { task =>
235
235
val mgr = taskScheduler.taskIdToTaskSetManager.get(task.taskId).get
236
236
assert(mgr.taskSet.stageAttemptId === 1 )
237
237
}
You can’t perform that action at this time.
0 commit comments