Skip to content

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

Closed
andrewor14 wants to merge 1 commit into
apache:masterfrom
andrewor14:standalone-scheduling-tests
Closed

andrewor14 wants to merge 1 commit into
apache:masterfrom
andrewor14:standalone-scheduling-tests

Conversation

@andrewor14

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

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

@SparkQA

SparkQA commented Jul 26, 2015

Copy link
Copy Markdown

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
Copy Markdown
Contributor Author

retest this please

@SparkQA

SparkQA commented Jul 26, 2015

Copy link
Copy Markdown

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 <andrew@databricks.com>

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 <andrew@databricks.com>

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
Copy Markdown
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 <lian@databricks.com>

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 <andrew@databricks.com>

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