Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-5703] AllJobsPage throws empty.max exception #4490

Closed
wants to merge 1 commit into from

Conversation

andrewor14
Copy link
Contributor

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.

@andrewor14
Copy link
Contributor Author

@JoshRosen

@SparkQA
Copy link

SparkQA commented Feb 10, 2015

Test build #27153 has started for PR 4490 at commit 21797d3.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Feb 10, 2015

Test build #27153 has finished for PR 4490 at commit 21797d3.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/27153/
Test PASSed.

@andrewor14
Copy link
Contributor Author

Merging into master 1.3 and 1.2

asfgit pushed a commit that referenced this pull request Feb 10, 2015
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

(cherry picked from commit a95ed52)
Signed-off-by: Andrew Or <andrew@databricks.com>
@asfgit asfgit closed this in a95ed52 Feb 10, 2015
asfgit pushed a commit that referenced this pull request Feb 10, 2015
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

(cherry picked from commit a95ed52)
Signed-off-by: Andrew Or <andrew@databricks.com>
@andrewor14 andrewor14 deleted the jobs-page-max branch February 10, 2015 05:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants