Skip to content

Commit

Permalink
Fix removal from shuffleToMapStage to search for a key-value pair with
Browse files Browse the repository at this point in the history
our stage instead of using our shuffleID.
  • Loading branch information
mateiz committed Feb 24, 2014
1 parent cd32d5e commit 0187cef
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -381,8 +381,8 @@ class DAGScheduler(
running -= stage
}
stageToInfos -= stage
for (shuffleDep <- stage.shuffleDep) {
shuffleToMapStage.remove(shuffleDep.shuffleId)
for ((k, v) <- shuffleToMapStage.find(_._2 == stage)) {
shuffleToMapStage.remove(k)
}
if (pendingTasks.contains(stage) && !pendingTasks(stage).isEmpty) {
logDebug("Removing pending status for stage %d".format(stageId))
Expand Down

0 comments on commit 0187cef

Please sign in to comment.