From f20701e50e267a3a21ace3bbb3ec9d019eb45f04 Mon Sep 17 00:00:00 2001 From: "shiyun.wxm" Date: Tue, 18 Mar 2014 21:56:46 +0800 Subject: [PATCH] bugfix: "Duration" in "Active Stages" in stages page --- core/src/main/scala/org/apache/spark/ui/jobs/StageTable.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/scala/org/apache/spark/ui/jobs/StageTable.scala b/core/src/main/scala/org/apache/spark/ui/jobs/StageTable.scala index c5fd3ae16dc9f..38d63b404bd7a 100644 --- a/core/src/main/scala/org/apache/spark/ui/jobs/StageTable.scala +++ b/core/src/main/scala/org/apache/spark/ui/jobs/StageTable.scala @@ -106,7 +106,7 @@ private[spark] class StageTable(val stages: Seq[StageInfo], val parent: JobProgr val description = listener.stageIdToDescription.get(s.stageId) .map(d =>
{d}
{nameLink}
).getOrElse(nameLink) val finishTime = s.completionTime.getOrElse(System.currentTimeMillis()) - val duration = s.submissionTime.map(t => finishTime - t) + val duration = s.submissionTime.map(t => if(finishTime > t) finishTime - t else System.currentTimeMillis() - t) {s.stageId}