Skip to content
Snippets Groups Projects
Commit eda05fa4 authored by shiyun.wxm's avatar shiyun.wxm
Browse files

use HashSet.empty[Long] instead of Seq[Long]

parent ecfbaf24
No related branches found
No related tags found
No related merge requests found
......@@ -107,7 +107,7 @@ private[spark] class ExecutorsUI(val sc: SparkContext) {
val memUsed = status.memUsed().toString
val maxMem = status.maxMem.toString
val diskUsed = status.diskUsed().toString
val activeTasks = listener.executorToTasksActive.getOrElse(execId, Seq[Long]()).size
val activeTasks = listener.executorToTasksActive.getOrElse(execId, HashSet.empty[Long]).size
val failedTasks = listener.executorToTasksFailed.getOrElse(execId, 0)
val completedTasks = listener.executorToTasksComplete.getOrElse(execId, 0)
val totalTasks = activeTasks + failedTasks + completedTasks
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment