Skip to content

Commit

Permalink
Fix removal from shuffleToMapStage to search for a key-value pair wit…
Browse files Browse the repository at this point in the history
…h our stage instead of using our shuffleID.
  • Loading branch information
mateiz authored and James Z.M. Gao committed Mar 11, 2014
1 parent ce262de commit 856267c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
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 856267c

Please sign in to comment.