Skip to content

[SPARK-10124] [MESOS] Fix removing queued driver in mesos cluster mode. #8322

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

Closed
wants to merge 1 commit into from

Conversation

tnachen
Copy link
Contributor

@tnachen tnachen commented Aug 19, 2015

Currently the spark applications can be queued to the Mesos cluster dispatcher, but when multiple jobs are in queue we don't handle removing jobs from the buffer correctly while iterating and causes null pointer exception.

This patch copies the buffer before iterating them, so exceptions aren't thrown when the jobs are removed.

@tnachen
Copy link
Contributor Author

tnachen commented Aug 19, 2015

@andrewor14 PTAL!

@andrewor14
Copy link
Contributor

LGTM

@SparkQA
Copy link

SparkQA commented Aug 20, 2015

Test build #41289 has finished for PR 8322 at commit b801f93.

  • This patch fails PySpark unit tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • case class PromotePrecision(child: Expression) extends UnaryExpression
    • case class CheckOverflow(child: Expression, dataType: DecimalType) extends UnaryExpression

@tnachen
Copy link
Contributor Author

tnachen commented Aug 20, 2015

retest this please

@andrewor14
Copy link
Contributor

pyspark tests are irrelevant to mesos. I'm merging this into master 1.5 thanks @tnachen.

asfgit pushed a commit that referenced this pull request Aug 20, 2015
Currently the spark applications can be queued to the Mesos cluster dispatcher, but when multiple jobs are in queue we don't handle removing jobs from the buffer correctly while iterating and causes null pointer exception.

This patch copies the buffer before iterating them, so exceptions aren't thrown when the jobs are removed.

Author: Timothy Chen <[email protected]>

Closes #8322 from tnachen/fix_cluster_mode.

(cherry picked from commit 73431d8)
Signed-off-by: Andrew Or <[email protected]>
@andrewor14
Copy link
Contributor

Can you close this now? looks like github is not auto-closing PRs again.

@asfgit asfgit closed this in 73431d8 Aug 20, 2015
@SparkQA
Copy link

SparkQA commented Aug 20, 2015

Test build #41297 timed out for PR 8322 at commit b801f93 after a configured wait of 175m.

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