Skip to content

Commit 3fee1e2

Browse files
committed
Fixed broken test and improved logging
1 parent ff12fca commit 3fee1e2

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

core/src/main/scala/org/apache/spark/scheduler/DAGScheduler.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -954,8 +954,8 @@ class DAGScheduler(
954954
// Do nothing here; the TaskScheduler handles these failures and resubmits the task.
955955

956956
case other =>
957-
// Unrecognized failure - abort all jobs depending on this stage
958-
abortStage(stageIdToStage(task.stageId), task + " failed: " + other)
957+
// Unrecognized failure - also do nothing. If the task fails repeatedly, the TaskScheduler
958+
// will abort the job.
959959
}
960960
}
961961

core/src/main/scala/org/apache/spark/scheduler/StageInfo.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ import scala.collection._
2121

2222
import org.apache.spark.executor.TaskMetrics
2323

24+
/**
25+
* Stores information about a stage to pass from the scheduler to SparkListeners.
26+
*
27+
* taskInfos stores the metrics for all tasks that have completed, including redundant, speculated
28+
* tasks.
29+
*/
2430
class StageInfo(
2531
stage: Stage,
2632
val taskInfos: mutable.Buffer[(TaskInfo, TaskMetrics)] = mutable.Buffer[(TaskInfo, TaskMetrics)]()

0 commit comments

Comments
 (0)