File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
core/src/main/scala/org/apache/spark/ui/jobs Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -153,6 +153,7 @@ class JobProgressListener(conf: SparkConf) extends SparkListener with Logging {
153153 val (errorMessage, metrics): (Option [String ], Option [TaskMetrics ]) =
154154 taskEnd.reason match {
155155 case org.apache.spark.Success =>
156+ stageData.completedIndices += info.index
156157 stageData.numCompleteTasks += 1
157158 (None , Option (taskEnd.taskMetrics))
158159 case e : ExceptionFailure => // Handle ExceptionFailure because we might have metrics
Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ private[ui] class StageTableBase(
168168 <td valign =" middle" >{submissionTime}</td >
169169 <td sorttable_customkey ={duration.getOrElse(- 1 ).toString}>{formattedDuration}</td >
170170 <td class =" progress-cell" >
171- {makeProgressBar(stageData.numActiveTasks, stageData.numCompleteTasks ,
171+ {makeProgressBar(stageData.numActiveTasks, stageData.completedIndices.size ,
172172 stageData.numFailedTasks, s.numTasks)}
173173 </td >
174174 <td sorttable_customekey ={inputRead.toString}>{inputReadWithUnit}</td >
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ package org.apache.spark.ui.jobs
2020import org .apache .spark .executor .TaskMetrics
2121import org .apache .spark .scheduler .{AccumulableInfo , TaskInfo }
2222
23- import scala .collection .mutable .HashMap
23+ import scala .collection .mutable .{ HashMap , HashSet }
2424
2525private [jobs] object UIData {
2626
@@ -38,6 +38,7 @@ private[jobs] object UIData {
3838 class StageUIData {
3939 var numActiveTasks : Int = _
4040 var numCompleteTasks : Int = _
41+ var completedIndices = HashSet [Int ]()
4142 var numFailedTasks : Int = _
4243
4344 var executorRunTime : Long = _
You can’t perform that action at this time.
0 commit comments