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

    https://github.com/apache/spark/pull/14969#discussion_r77651971
  
    --- Diff: core/src/main/scala/org/apache/spark/ui/exec/ExecutorsTab.scala 
---
    @@ -70,15 +72,33 @@ class ExecutorsListener(storageStatusListener: 
StorageStatusListener, conf: Spar
         executorToLogUrls(eid) = executorAdded.executorInfo.logUrlMap
         executorToTotalCores(eid) = executorAdded.executorInfo.totalCores
         executorToTasksMax(eid) = executorToTotalCores(eid) / 
conf.getInt("spark.task.cpus", 1)
    -    executorIdToData(eid) = new ExecutorUIData(executorAdded.time)
    +    executorEvents += executorAdded
    +    if (executorEvents.size > MAX_EXECUTOR_LIMIT) {
    +      executorEvents = executorEvents.drop(1)
    --- End diff --
    
    Because drop function don't really remove element, it just return a new 
collection.


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to