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
611611
612612 // Another ResubmitFailedStages event should not result in another attempt for the map
613613 // 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.
617617 runEvent(ResubmitFailedStages )
618618 sc.listenerBus.waitUntilEmpty(WAIT_TIMEOUT_MILLIS )
619619 assert(countSubmittedMapStageAttempts() === 2 )
@@ -680,7 +680,8 @@ class DAGSchedulerSuite
680680 createFakeTaskInfo(),
681681 null ))
682682
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
684685 runEvent(ResubmitFailedStages )
685686
686687 // 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
231231 val taskDescriptions3 = taskScheduler.resourceOffers(workerOffers).flatten
232232 assert(10 === taskDescriptions3.length)
233233
234- taskDescriptions3.foreach{ task =>
234+ taskDescriptions3.foreach { task =>
235235 val mgr = taskScheduler.taskIdToTaskSetManager.get(task.taskId).get
236236 assert(mgr.taskSet.stageAttemptId === 1 )
237237 }
You can’t perform that action at this time.
0 commit comments