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

    https://github.com/apache/spark/pull/14969#discussion_r77652206
  
    --- Diff: core/src/main/scala/org/apache/spark/ui/jobs/AllJobsPage.scala ---
    @@ -123,55 +123,55 @@ private[ui] class AllJobsPage(parent: JobsTab) 
extends WebUIPage("") {
         }
       }
     
    -  private def makeExecutorEvent(executorUIDatas: HashMap[String, 
ExecutorUIData]): Seq[String] = {
    +  private def makeExecutorEvent(executorUIDatas: Seq[SparkListenerEvent]):
    +      Seq[String] = {
         val events = ListBuffer[String]()
         executorUIDatas.foreach {
    -      case (executorId, event) =>
    +      case a: SparkListenerExecutorAdded =>
             val addedEvent =
               s"""
                  |{
                  |  'className': 'executor added',
                  |  'group': 'executors',
    -             |  'start': new Date(${event.startTime}),
    +             |  'start': new Date(${a.time}),
                  |  'content': '<div class="executor-event-content"' +
                  |    'data-toggle="tooltip" data-placement="bottom"' +
    -             |    'data-title="Executor ${executorId}<br>' +
    -             |    'Added at ${UIUtils.formatDate(new 
Date(event.startTime))}"' +
    -             |    'data-html="true">Executor ${executorId} added</div>'
    +             |    'data-title="Executor ${a.executorId}<br>' +
    +             |    'Added at ${UIUtils.formatDate(new Date(a.time))}"' +
    +             |    'data-html="true">Executor ${a.executorId} added</div>'
                  |}
                """.stripMargin
             events += addedEvent
    +      case e: SparkListenerExecutorRemoved =>
    --- End diff --
    
    yes


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