Skip to content

Commit 78b0f97

Browse files
committed
[SPARK-20591][WEB UI] Succeeded tasks num not equal in all jobs page and job detail page on spark web ui when speculative task(s) exist.
## What changes were proposed in this pull request? Modified succeeded num in job detail page from "completed = stageData.completedIndices.size" to "completed = stageData.numCompleteTasks",which making succeeded tasks num in all jobs page and job detail page look more consistent, and more easily to find which stages the speculative task(s) were in. ## How was this patch tested? manual tests
1 parent 471de5d commit 78b0f97

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/main/scala/org/apache/spark/ui/jobs/StageTable.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ private[ui] class StagePagedTable(
299299
<td>{data.formattedDuration}</td>
300300
<td class="progress-cell">
301301
{UIUtils.makeProgressBar(started = stageData.numActiveTasks,
302-
completed = stageData.completedIndices.size, failed = stageData.numFailedTasks,
302+
completed = stageData.numCompleteTasks, failed = stageData.numFailedTasks,
303303
skipped = 0, reasonToNumKilled = stageData.reasonToNumKilled, total = info.numTasks)}
304304
</td>
305305
<td>{data.inputReadWithUnit}</td>

0 commit comments

Comments
 (0)