diff options
author | catapan <cedarpan86@gmail.com> | 2016-05-31 06:55:07 -0500 |
---|---|---|
committer | Sean Owen <sowen@cloudera.com> | 2016-05-31 06:55:07 -0500 |
commit | 6878f3e2eafe0bd2e19a14ddffe6e0c1e545a42d (patch) | |
tree | 44f84d2686391e1476d2855f57f20030761b7f08 /core/src/main/resources | |
parent | 675921040ee4802aa9914457de62af746bc3657d (diff) | |
download | spark-6878f3e2eafe0bd2e19a14ddffe6e0c1e545a42d.tar.gz spark-6878f3e2eafe0bd2e19a14ddffe6e0c1e545a42d.tar.bz2 spark-6878f3e2eafe0bd2e19a14ddffe6e0c1e545a42d.zip |
[SPARK-15641] HistoryServer to not show invalid date for incomplete application
## What changes were proposed in this pull request?
For incomplete applications in HistoryServer, the complete column will show "-" instead of incorrect date.
## How was this patch tested?
manually tested.
Author: catapan <cedarpan86@gmail.com>
Author: Ziying Pan <cedarpan@Ziyings-MacBook.local>
Closes #13396 from catapan/SPARK-15641_fix_completed_column.
Diffstat (limited to 'core/src/main/resources')
-rw-r--r-- | core/src/main/resources/org/apache/spark/ui/static/historypage.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/main/resources/org/apache/spark/ui/static/historypage.js b/core/src/main/resources/org/apache/spark/ui/static/historypage.js index ef89a9a86f..d2161662d5 100644 --- a/core/src/main/resources/org/apache/spark/ui/static/historypage.js +++ b/core/src/main/resources/org/apache/spark/ui/static/historypage.js @@ -54,7 +54,8 @@ function makeIdNumeric(id) { } function formatDate(date) { - return date.split(".")[0].replace("T", " "); + if (date <= 0) return "-"; + else return date.split(".")[0].replace("T", " "); } function getParameterByName(name, searchString) { |