spark-instrumented-optimizer/core/src
Andrew Or a95ed52157 [SPARK-5703] AllJobsPage throws empty.max exception
If you have a `SparkListenerJobEnd` event without the corresponding `SparkListenerJobStart` event, then `JobProgressListener` will create an empty `JobUIData` with an empty `stageIds` list. However, later in `AllJobsPage` we call `stageIds.max`. If this is empty, it will throw an exception.

This crashed my history server.

Author: Andrew Or <andrew@databricks.com>

Closes #4490 from andrewor14/jobs-page-max and squashes the following commits:

21797d3 [Andrew Or] Check nonEmpty before calling max
2015-02-09 21:18:48 -08:00
..
main [SPARK-5703] AllJobsPage throws empty.max exception 2015-02-09 21:18:48 -08:00
test [SPARK-2996] Implement userClassPathFirst for driver, yarn. 2015-02-09 21:17:28 -08:00