Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -518,10 +518,11 @@ class BasicSchedulerIntegrationSuite extends SchedulerIntegrationSuite[SingleCor

// make sure the required map output is available
task.stageId match {
case 1 => assertMapOutputAvailable(b)
case 3 => assertMapOutputAvailable(c)
case 4 => assertMapOutputAvailable(d)
case _ => // no shuffle map input, nothing to check
case _ =>
// we can't check for the output for the two intermediate stages, unfortunately,
// b/c the stage numbering is non-deterministic, so stage number alone doesn't tell
// us what to check
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to do an OR here -- check that one of the intermediate outputs is available? (fine if you want to do this later and merge the fix for now)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought about this, but decided it was kind of silly since you could be checking for something irrelevant, and its not a trivial change (you'd need to catch an exception from doing the wrong check). Anyway just figured I'd leave it out for the hotfix.

}

(task.stageId, task.stageAttemptId, task.partitionId) match {
Expand Down Expand Up @@ -557,11 +558,9 @@ class BasicSchedulerIntegrationSuite extends SchedulerIntegrationSuite[SingleCor
val (taskDescription, task) = backend.beginTask()
stageToAttempts.getOrElseUpdate(task.stageId, new HashSet()) += task.stageAttemptId

// make sure the required map output is available
task.stageId match {
case 1 => assertMapOutputAvailable(shuffledRdd)
case _ => // no shuffle map input, nothing to check
}
// We cannot check if shuffle output is available, because the failed fetch will clear the
// shuffle output. Then we'd have a race, between the already-started task from the first
// attempt, and when the failure clears out the map output status.

(task.stageId, task.stageAttemptId, task.partitionId) match {
case (0, _, _) =>
Expand Down