Skip to content
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'origin/master' into SPARK-10381
  • Loading branch information
JoshRosen committed Sep 14, 2015
commit 81b86a1b542e65d16e2ff3db103339f1b5b7cec0
6 changes: 6 additions & 0 deletions core/src/main/scala/org/apache/spark/TaskEndReason.scala
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,12 @@ case class TaskCommitDenied(
attemptNumber: Int) extends TaskFailedReason {
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 didn't want this patch's backporting to be blocked over binary incompatibility concerns, hence my decision to use the attempt number here. The unique-within-a-SparkContext TaskAttemptIDs are Longs, which would require a change to this interface.

The parameter renaming is potentially source-incompatible. If we think that this is a concern, then I can roll back to the old incorrect name and can add a comment.

override def toErrorString: String = s"TaskCommitDenied (Driver denied task commit)" +
s" for job: $jobID, partition: $partitionID, attemptNumber: $attemptNumber"
/**
* If a task failed because its attempt to commit was denied, do not count this failure
* towards failing the stage. This is intended to prevent spurious stage failures in cases
* where many speculative tasks are launched and denied to commit.
*/
override def shouldEventuallyFailJob: Boolean = false
}

/**
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.