GitHub user zsxwing opened a pull request: https://github.com/apache/spark/pull/20493
[SPARK-23326][WEBUI]schedulerDelay should return 0 when the task is running ## What changes were proposed in this pull request? When a task is still running, metrics like executorRunTime are not available. Then `schedulerDelay` will be almost the same as `duration` and that's confusing. This PR makes `schedulerDelay` return 0 when the task is running which is the same behavior as 2.2. ## How was this patch tested? `AppStatusUtilsSuite.schedulerDelay` You can merge this pull request into a Git repository by running: $ git pull https://github.com/zsxwing/spark SPARK-23326 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/20493.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #20493 ---- commit 7889fb0e5e4515ade35c2a07703017e16ee6194a Author: Shixiong Zhu <zsxwing@...> Date: 2018-02-03T00:25:34Z schedulerDelay should return 0 when the task is running ---- --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org