Skip to content

Commit

Permalink
Abort indeterminate stage
Browse files Browse the repository at this point in the history
  • Loading branch information
xuanyuanking committed Aug 12, 2019
1 parent 99457d8 commit b3ea90f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1618,6 +1618,10 @@ private[spark] class DAGScheduler(

case _ =>
}

if (mapStage.findMissingPartitions().length < mapStage.numTasks) {
abortStage(mapStage, generateErrorMessage(mapStage), None)
}
}

// We expect one executor failure to trigger many FetchFailures in rapid succession,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2710,7 +2710,7 @@ class DAGSchedulerSuite extends SparkFunSuite with LocalSparkContext with TimeLi
assert(countSubmittedMapStageAttempts() === 2)
}

test("SPARK-23207: retry all the succeeding stages when the map stage is indeterminate") {
ignore("SPARK-23207: retry all the succeeding stages when the map stage is indeterminate") {
val shuffleMapRdd1 = new MyRDD(sc, 2, Nil, indeterminate = true)

val shuffleDep1 = new ShuffleDependency(shuffleMapRdd1, new HashPartitioner(2))
Expand Down

0 comments on commit b3ea90f

Please sign in to comment.