Skip to content

[SPARK-9352][SPARK-9353] Add tests for standalone scheduling code #7668

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

Conversation

andrewor14
Copy link
Contributor

This also fixes a small issue in the standalone Master that was uncovered by the new tests. For more detail, read the description of SPARK-9353.

Previously, if cores per executor is not set, because we assign
1 core at a time we end up requiring the worker to have enough
memory for N executors, where N is the number of cores assigned.
This is incorrect because in this mode we should have at most
1 executor per worker.

This is fixed in this commit with a regression test.
@andrewor14
Copy link
Contributor Author

FYI @nishkamravi2 there was another small issue with your patch.

@SparkQA
Copy link

SparkQA commented Jul 26, 2015

Test build #38453 has finished for PR 7668 at commit d852faf.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@andrewor14
Copy link
Contributor Author

retest this please

@SparkQA
Copy link

SparkQA commented Jul 26, 2015

Test build #38478 has finished for PR 7668 at commit d852faf.

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

@asfgit asfgit closed this in 1cf1976 Jul 26, 2015
asfgit pushed a commit that referenced this pull request Jul 26, 2015
This also fixes a small issue in the standalone Master that was uncovered by the new tests. For more detail, read the description of SPARK-9353.

Author: Andrew Or <[email protected]>

Closes #7668 from andrewor14/standalone-scheduling-tests and squashes the following commits:

d852faf [Andrew Or] Add tests + fix scheduling with memory limits

(cherry picked from commit 1cf1976)
Signed-off-by: Andrew Or <[email protected]>

Conflicts:
	core/src/test/scala/org/apache/spark/deploy/master/MasterSuite.scala
@andrewor14 andrewor14 deleted the standalone-scheduling-tests branch July 26, 2015 20:04
@andrewor14
Copy link
Contributor Author

Master 1.4

asfgit pushed a commit that referenced this pull request Jul 27, 2015
`MasterSuite.makeMaster()` doesn't compile under 1.4. `Master` is still an actor in branch-1.4, and can only be created via `ActorSystem.actorOf`, or with `TestActorRef`.

Author: Cheng Lian <[email protected]>

Closes #7686 from liancheng/hotfix-revert-pr-7668 and squashes the following commits:

089a1a8 [Cheng Lian] Revert "[SPARK-9352] [SPARK-9353] Add tests for standalone scheduling code"
54e8ab0 [Cheng Lian] Revert "[HOTFIX] Fix compile in MasterSuite"
asfgit pushed a commit that referenced this pull request Jul 28, 2015
This also fixes a small issue in the standalone Master that was uncovered by the new tests. For more detail, read the description of SPARK-9353.

Author: Andrew Or <[email protected]>

Closes #7668 from andrewor14/standalone-scheduling-tests and squashes the following commits:

d852faf [Andrew Or] Add tests + fix scheduling with memory limits

Conflicts:
	core/src/test/scala/org/apache/spark/deploy/master/MasterSuite.scala
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.

2 participants