Github user JoshRosen commented on a diff in the pull request:

    https://github.com/apache/spark/pull/10835#discussion_r50807297
  
    --- Diff: core/src/main/scala/org/apache/spark/scheduler/DAGScheduler.scala 
---
    @@ -1116,23 +1120,33 @@ class DAGScheduler(
        */
       private[scheduler] def handleTaskCompletion(event: CompletionEvent) {
         val task = event.task
    +    val taskId = task.partitionId
         val stageId = task.stageId
         val taskType = Utils.getFormattedClassName(task)
     
         outputCommitCoordinator.taskCompleted(
           stageId,
    -      task.partitionId,
    +      taskId,
           event.taskInfo.attemptNumber, // this is a task attempt number
           event.reason)
     
    -    // The success case is dealt with separately below, since we need to 
compute accumulator
    -    // updates before posting.
    -    if (event.reason != Success) {
    -      val attemptId = task.stageAttemptId
    -      listenerBus.post(SparkListenerTaskEnd(stageId, attemptId, taskType, 
event.reason,
    -        event.taskInfo, event.taskMetrics))
    +    // Reconstruct task metrics. Note: this may be null if the task has 
failed.
    +    val taskMetrics: TaskMetrics =
    +    if (event.accumUpdates.nonEmpty) {
    --- End diff --
    
    More weird wrapping here from copy-paste.


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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

Reply via email to