You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by andrewor14 <gi...@git.apache.org> on 2015/04/14 20:45:19 UTC

[GitHub] spark pull request: [SPARK-6115][Core] Show job description at the...

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

    https://github.com/apache/spark/pull/4910#discussion_r28357134
  
    --- Diff: core/src/main/scala/org/apache/spark/ui/jobs/AllJobsPage.scala ---
    @@ -42,15 +42,18 @@ private[ui] class AllJobsPage(parent: JobsTab) extends WebUIPage("") {
         }
     
         def makeRow(job: JobUIData): Seq[Node] = {
    +      val firstStageInfo = Option(job.stageIds)
    +        .filter(_.nonEmpty)
    +        .flatMap { ids => listener.stageIdToInfo.get(ids.min) }
           val lastStageInfo = Option(job.stageIds)
             .filter(_.nonEmpty)
             .flatMap { ids => listener.stageIdToInfo.get(ids.max) }
    -      val lastStageData = lastStageInfo.flatMap { s =>
    +      val firstStageData = firstStageInfo.flatMap { s =>
             listener.stageIdToData.get((s.stageId, s.attemptId))
           }
     
           val lastStageName = lastStageInfo.map(_.name).getOrElse("(Unknown Stage Name)")
    --- End diff --
    
    should this be `firstStageName`?


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