Github user srowen commented on a diff in the pull request:
https://github.com/apache/spark/pull/14969#discussion_r78223619
--- Diff: core/src/main/scala/org/apache/spark/ui/exec/ExecutorsPage.scala
---
@@ -83,18 +83,22 @@ private[spark] object ExecutorsPage {
val memUsed = status.memUsed
val maxMem = status.maxMem
val diskUsed = status.diskUsed
- val totalCores = listener.executorToTotalCores.getOrElse(execId, 0)
- val maxTasks = listener.executorToTasksMax.getOrElse(execId, 0)
- val activeTasks = listener.executorToTasksActive.getOrElse(execId, 0)
- val failedTasks = listener.executorToTasksFailed.getOrElse(execId, 0)
- val completedTasks =
listener.executorToTasksComplete.getOrElse(execId, 0)
+ val totalCores =
listener.executorToTaskSummary.get(execId).map(_.totalCores).getOrElse(0)
--- End diff --
Likewise it's probably easier to get this once, and then possibly handle
the case where it doesn't exist once? In that case you return an
ExecutorSummary with a lot of simple default values. Might be simpler.
---
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]