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

    https://github.com/apache/spark/pull/3009#discussion_r20673960
  
    --- Diff: 
core/src/main/scala/org/apache/spark/ui/jobs/JobProgressListener.scala ---
    @@ -144,11 +146,30 @@ class JobProgressListener(conf: SparkConf) extends 
SparkListener with Logging {
       }
     
       override def onJobStart(jobStart: SparkListenerJobStart) = synchronized {
    -    val jobGroup = 
Option(jobStart.properties).map(_.getProperty(SparkContext.SPARK_JOB_GROUP_ID))
    +    val jobGroup = for (
    +      props <- Option(jobStart.properties);
    +      group <- Option(props.getProperty(SparkContext.SPARK_JOB_GROUP_ID))
    +    ) yield group
         val jobData: JobUIData =
    -      new JobUIData(jobStart.jobId, jobStart.stageIds, jobGroup, 
JobExecutionStatus.RUNNING)
    +      new JobUIData(jobStart.jobId, Some(System.currentTimeMillis), None, 
jobStart.stageIds,
    +        jobGroup, JobExecutionStatus.RUNNING)
    +    // Compute (a potential underestimate of) the number of tasks that 
will be run by this job:
    --- End diff --
    
    How's this for an explanation?
    
    ```
        // Compute (a potential underestimate of) the number of tasks that will 
be run by this job.
        // This may be an underestimate because the job start event references 
all of the result
        // stages's transitive stage dependencies, but some of these stages 
might be skipped if their
        // output is available from earlier runs.
    ```


---
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