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-2269 Refactor mesos scheduler resourceOffers and add unit test #1487

Closed
wants to merge 4 commits into from

Conversation

tnachen
Copy link
Contributor

@tnachen tnachen commented Jul 18, 2014

No description provided.

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@tnachen tnachen changed the title [SPARK-2269] Refactor mesos scheduler resourceOffers and add unit test SPARK-2269 Refactor mesos scheduler resourceOffers and add unit test Jul 20, 2014
@tnachen
Copy link
Contributor Author

tnachen commented Jul 20, 2014

Do I need to specify someone to verify this patch?

@pwendell
Copy link
Contributor

Jenkins, test this please. Naw this is a message from jenkins.

val conf = new SparkConf
conf.set("spark.executor.memory", "100m")
conf.set("spark.home", "/path")
val sc = new SparkContext("local-cluster[2 , 1 , 512]", "test", conf)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it would be better not to create a whole SparkContext here for the tests (creating a local context like this is really expensive). Instead, could this test just create a MesosSchedulerBackend directly? I think you can even just pass it null for the SparkContext (or you could mock one, depending on how it is used).

@SparkQA
Copy link

SparkQA commented Jul 21, 2014

QA tests have started for PR 1487. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/16899/consoleFull

@pwendell
Copy link
Contributor

Don't have a ton of time to look ATM but I kicked off the tests.

@tnachen
Copy link
Contributor Author

tnachen commented Jul 21, 2014

@pwendell sounds good, I updated the PR addressing your comments

@SparkQA
Copy link

SparkQA commented Jul 21, 2014

QA results for PR 1487:
- This patch FAILED unit tests.
- This patch merges cleanly
- This patch adds no public classes

For more information see test ouptut:
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/16899/consoleFull

@tnachen
Copy link
Contributor Author

tnachen commented Jul 21, 2014

@pwendell The console said the test failed but in a very unrelated way, is CI failing in general?

@pwendell
Copy link
Contributor

Jenkins, retest this please. Jenkins, add to whitelist.

@SparkQA
Copy link

SparkQA commented Jul 22, 2014

QA tests have started for PR 1487. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/16946/consoleFull

@SparkQA
Copy link

SparkQA commented Jul 22, 2014

QA results for PR 1487:
- This patch PASSES unit tests.
- This patch merges cleanly
- This patch adds no public classes

For more information see test ouptut:
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/16946/consoleFull

@tnachen
Copy link
Contributor Author

tnachen commented Jul 25, 2014

@pwendell this seems to pass tests now, mind to take a look?

@andrewor14
Copy link
Contributor

retest this please

@andrewor14
Copy link
Contributor

@tnachen What is the state of this patch? Is the existing logic relevant after the recent changes?

@SparkQA
Copy link

SparkQA commented Sep 11, 2014

QA tests have started for PR 1487 at commit f86768b.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Sep 12, 2014

QA tests have finished for PR 1487 at commit f86768b.

  • This patch passes unit tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • case class CreateTableAsSelect(
    • case class CreateTableAsSelect(

@tnachen
Copy link
Contributor Author

tnachen commented Sep 12, 2014

hi @andrewor14 yes the logic is still the same, it is good to merge as well.

@tnachen
Copy link
Contributor Author

tnachen commented Nov 10, 2014

@andrewor14 can someone help merge this? It's been here for 2 months

offer.getHostname,
getResource(offer.getResourcesList, "cpus").toInt)

private def inClassLoader()(fun: => Unit) = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a javadoc on why this is needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is actually just a refactor of what's already in the backend, I don't actualy know why we need to set and restore class loaders

@andrewor14
Copy link
Contributor

Hey @tnachen sorry for leaving this sitting. This seems like a small enough refactor get into 1.2 at this point. Once you rebase to master and address the minor comments I will merge this.

@tnachen
Copy link
Contributor Author

tnachen commented Nov 11, 2014

@andrewor14 thanks for the review, I just rebased and should address all your comments too

@SparkQA
Copy link

SparkQA commented Nov 11, 2014

Test build #23222 has started for PR 1487 at commit 4ea5dec.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Nov 11, 2014

Test build #23222 has finished for PR 1487 at commit 4ea5dec.

  • 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/23222/
Test PASSed.

@andrewor14
Copy link
Contributor

Ok LGTM I'm merging this into master and 1.2

@asfgit asfgit closed this in a878660 Nov 12, 2014
asfgit pushed a commit that referenced this pull request Nov 12, 2014
Author: Timothy Chen <tnachen@gmail.com>

Closes #1487 from tnachen/resource_offer_refactor and squashes the following commits:

4ea5dec [Timothy Chen] Rebase from master and address comments
9ccab09 [Timothy Chen] Address review comments
e6494dc [Timothy Chen] Refactor class loading
8207428 [Timothy Chen] Refactor mesos scheduler resourceOffers and add unit test

(cherry picked from commit a878660)
Signed-off-by: Andrew Or <andrew@databricks.com>
kazuyukitanimura pushed a commit to kazuyukitanimura/spark that referenced this pull request Aug 10, 2022
* Update rio to use same docker image as boson.

* Add pipelines to trigger boson unit tests whith new PR.
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.

5 participants