-
Notifications
You must be signed in to change notification settings - Fork 28.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SPARK-26196][SPARK-26281][WebUI] Total tasks title in the stage page is incorrect when there are failed or killed tasks and update duration metrics #23160
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -610,7 +610,8 @@ $(document).ready(function () { | |
$("#accumulator-table").DataTable(accumulatorConf); | ||
|
||
// building tasks table that uses server side functionality | ||
var totalTasksToShow = responseBody.numCompleteTasks + responseBody.numActiveTasks; | ||
var totalTasksToShow = responseBody.numCompleteTasks + responseBody.numActiveTasks + | ||
responseBody.numKilledTasks + responseBody.numFailedTasks; | ||
var taskTable = "#active-tasks-table"; | ||
var taskConf = { | ||
"serverSide": true, | ||
|
@@ -661,8 +662,8 @@ $(document).ready(function () { | |
{data : "launchTime", name: "Launch Time", render: formatDate}, | ||
{ | ||
data : function (row, type) { | ||
if (row.duration) { | ||
return type === 'display' ? formatDuration(row.duration) : row.duration; | ||
if (row.taskMetrics && row.taskMetrics.executorRunTime) { | ||
return type === 'display' ? formatDuration(row.taskMetrics.executorRunTime) : row.taskMetrics.executorRunTime; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, that makes sense. However, you also need to update the search filter method to not search on duration in StagesResource.scala here:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks removed. |
||
} else { | ||
return ""; | ||
} | ||
|
@@ -921,7 +922,7 @@ $(document).ready(function () { | |
|
||
// title number and toggle list | ||
$("#summaryMetricsTitle").html("Summary Metrics for " + "<a href='#tasksTitle'>" + responseBody.numCompleteTasks + " Completed Tasks" + "</a>"); | ||
$("#tasksTitle").html("Task (" + totalTasksToShow + ")"); | ||
$("#tasksTitle").html("Tasks (" + totalTasksToShow + ")"); | ||
|
||
// hide or show the accumulate update table | ||
if (accumulatorTable.length == 0) { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah that makes sense. Looks good to me, however could you also please verify whether the data in tasks table reflects information about the failed / killed tasks as well, as I am passing the value of that variable in the ajax request while fetching data for task tables. Thank you for catching that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes @pgandhi999 . All the failed tasks are displaying in the tasks table. Thanks for your great work.