You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by JoshRosen <gi...@git.apache.org> on 2017/05/16 23:44:03 UTC

[GitHub] spark pull request #18008: [SPARK-20776] Fix perf. problems in JobProgressLi...

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

    https://github.com/apache/spark/pull/18008#discussion_r116883398
  
    --- Diff: core/src/main/scala/org/apache/spark/ui/jobs/JobProgressListener.scala ---
    @@ -405,7 +404,7 @@ class JobProgressListener(conf: SparkConf) extends SparkListener with Logging {
             updateAggregateMetrics(stageData, info.executorId, m, oldMetrics)
           }
     
    -      val taskData = stageData.taskData.getOrElseUpdate(info.taskId, TaskUIData(info, None))
    --- End diff --
    
    Important note here: in the old code, the `elseUpdate` branch would only be taken in rare error cases where we  somehow purged the TaskUIData which should have been created when the task launched. It technically doesn't matter what we put in for the `Option[Metrics]` here since it just gets unconditionally overwritten on line 410 in the old code. So while my new code constructs TaskUIData with default metrics it doesn't actually change the behavior of this block.


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

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