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

    https://github.com/apache/spark/pull/246#discussion_r11095648
  
    --- Diff: 
core/src/main/scala/org/apache/spark/ui/jobs/JobProgressListener.scala ---
    @@ -116,6 +118,16 @@ private[ui] class JobProgressListener(conf: SparkConf) 
extends SparkListener {
     
         val stages = poolToActiveStages.getOrElseUpdate(poolName, new 
HashMap[Int, StageInfo]())
         stages(stage.stageId) = stage
    +    
    +    // Extract Job ID and double check if we have the details
    +    val jobId = Option(stageSubmitted.properties).flatMap {
    +      p => Option(p.getProperty("spark.job.id"))
    +    }.getOrElse("-1").toInt
    --- End diff --
    
    Ah cool -- I looked at the ordering of the JobStart and StageSubmitted 
events more closely and I think you can safely remove this.


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

Reply via email to