Skip to content

Commit

Permalink
Change back to just log when needsTaskCommit=false
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Graves committed Feb 16, 2016
1 parent 5fc19c7 commit 7ea0b3a
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,8 @@ object SparkHadoopMapRedUtil extends Logging {
performCommit()
}
} else {
// Some other attempt committed the output, this generally means speculation, we need to mark
// this task as failure so accounting work correctly
val taskAttemptNumber = TaskContext.get().attemptNumber()
val message =
s"No need to commit output of task because needsTaskCommit=false: $mrTaskAttemptID"
logInfo(message)
throw new CommitDeniedException(message, jobId, splitId, taskAttemptNumber)
// Some other attempt committed the output, so we do nothing and signal success
logInfo(s"No need to commit output of task because needsTaskCommit=false: $mrTaskAttemptID")
}
}
}

0 comments on commit 7ea0b3a

Please sign in to comment.