diff options
author | zsxwing <zsxwing@gmail.com> | 2015-06-30 14:06:50 -0700 |
---|---|---|
committer | Andrew Or <andrew@databricks.com> | 2015-06-30 14:06:50 -0700 |
commit | 8c898964f095fcb5bb1c9212e1e484b1eb55c296 (patch) | |
tree | 54a8236244d085b1064482b1f3d379f2959f79b8 /mllib/src | |
parent | 3ba23ffd377d12383d923d1550ac8e2b916090fc (diff) | |
download | spark-8c898964f095fcb5bb1c9212e1e484b1eb55c296.tar.gz spark-8c898964f095fcb5bb1c9212e1e484b1eb55c296.tar.bz2 spark-8c898964f095fcb5bb1c9212e1e484b1eb55c296.zip |
[SPARK-8705] [WEBUI] Don't display rects when totalExecutionTime is 0
Because `System.currentTimeMillis()` is not accurate for tasks that only need several milliseconds, sometimes `totalExecutionTime` in `makeTimeline` will be 0. If `totalExecutionTime` is 0, there will the following error in the console.
![screen shot 2015-06-29 at 7 08 55 pm](https://cloud.githubusercontent.com/assets/1000778/8406776/5cd38e04-1e92-11e5-89f2-0c5134fe4b6b.png)
This PR fixes it by using an empty svg tag when `totalExecutionTime` is 0. This is a screenshot for a task that its totalExecutionTime is 0 after fixing it.
![screen shot 2015-06-30 at 12 26 52 am](https://cloud.githubusercontent.com/assets/1000778/8412896/7b33b4be-1ebf-11e5-9100-d6d656af3747.png)
Author: zsxwing <zsxwing@gmail.com>
Closes #7088 from zsxwing/SPARK-8705 and squashes the following commits:
9ee4ef5 [zsxwing] Address comments
ef2ecfa [zsxwing] Don't display rects when totalExecutionTime is 0
Diffstat (limited to 'mllib/src')
0 files changed, 0 insertions, 0 deletions