[ 
https://issues.apache.org/jira/browse/SPARK-13054?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15141520#comment-15141520
 ] 

Apache Spark commented on SPARK-13054:
--------------------------------------

User 'tgravescs' has created a pull request for this issue:
https://github.com/apache/spark/pull/10951

> Always post TaskEnd event for tasks in cancelled stages
> -------------------------------------------------------
>
>                 Key: SPARK-13054
>                 URL: https://issues.apache.org/jira/browse/SPARK-13054
>             Project: Spark
>          Issue Type: Bug
>          Components: Scheduler
>    Affects Versions: 1.0.0
>            Reporter: Andrew Or
>            Assignee: Andrew Or
>
> {code}
>     // The success case is dealt with separately below.
>     // TODO: Why post it only for failed tasks in cancelled stages? Clarify 
> semantics here.
>     if (event.reason != Success) {
>       val attemptId = task.stageAttemptId
>       listenerBus.post(SparkListenerTaskEnd(
>         stageId, attemptId, taskType, event.reason, event.taskInfo, 
> taskMetrics))
>     }
> {code}
> Today we only post task end events for canceled stages if the task failed. 
> There is no reason why we shouldn't just post it for all the tasks, including 
> the ones that succeeded. If we do that we will be able to simplify another 
> branch in the DAGScheduler, which needs a lot of simplification.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to