Github user rxin commented on a diff in the pull request:
https://github.com/apache/spark/pull/1224#discussion_r14223909
--- Diff:
core/src/main/scala/org/apache/spark/ui/jobs/JobProgressListener.scala ---
@@ -185,12 +185,15 @@ class JobProgressListener(conf: SparkConf) extends
SparkListener {
val (failureInfo, metrics): (Option[ExceptionFailure],
Option[TaskMetrics]) =
taskEnd.reason match {
+ case org.apache.spark.Success =>
+ stageIdToTasksComplete(sid) =
stageIdToTasksComplete.getOrElse(sid, 0) + 1
+ (None, Option(taskEnd.taskMetrics))
case e: ExceptionFailure =>
stageIdToTasksFailed(sid) =
stageIdToTasksFailed.getOrElse(sid, 0) + 1
(Some(e), e.metrics)
- case _ =>
- stageIdToTasksComplete(sid) =
stageIdToTasksComplete.getOrElse(sid, 0) + 1
- (None, Option(taskEnd.taskMetrics))
+ case e: org.apache.spark.TaskEndReason =>
+ stageIdToTasksFailed(sid) =
stageIdToTasksFailed.getOrElse(sid, 0) + 1
+ (None, None)
--- End diff --
I will submit a PR later to consolidate the error reporting (right now we
have some pretty convoluted error reporting in the UI).
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---