From 612c4c7242f6289d3a1e424a69951be25cd126af Mon Sep 17 00:00:00 2001 From: Gengliang Wang Date: Thu, 6 Dec 2018 01:44:55 +0800 Subject: [PATCH] fix --- .../main/resources/org/apache/spark/ui/static/stagepage.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/main/resources/org/apache/spark/ui/static/stagepage.js b/core/src/main/resources/org/apache/spark/ui/static/stagepage.js index 564467487e84e..a0511f6acd045 100644 --- a/core/src/main/resources/org/apache/spark/ui/static/stagepage.js +++ b/core/src/main/resources/org/apache/spark/ui/static/stagepage.js @@ -667,8 +667,9 @@ $(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; + // SPARK-26281: Duration column of task table should be executorRunTime instead of real duration + if (row.taskMetrics && row.taskMetrics.executorRunTime) { + return type === 'display' ? formatDuration(row.taskMetrics.executorRunTime) : row.taskMetrics.executorRunTime; } else { return ""; }