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-1143: refactor TaskSchedulerImplSuite #339

Closed
wants to merge 7 commits into from

Conversation

CodingCat
Copy link
Contributor

https://issues.apache.org/jira/browse/SPARK-1143

The current TaskSchedulerImplSuite actually bypasses the scheduling code (mainly resourceOffer())

In this patch, I removed the original dummy ResourceOffer and made the test case call taskScheduler.resourceOffer() directly,

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@CodingCat CodingCat changed the title SPARK-1143: refactor TaskSchedulerImplSuite using taskScheduler.resourceOffer [WIP]SPARK-1143: refactor TaskSchedulerImplSuite using taskScheduler.resourceOffer Apr 6, 2014
@CodingCat CodingCat changed the title [WIP]SPARK-1143: refactor TaskSchedulerImplSuite using taskScheduler.resourceOffer SPARK-1143: refactor TaskSchedulerImplSuite using taskScheduler.resourceOffer Apr 6, 2014
@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@AmplabJenkins
Copy link

Merged build finished.

@AmplabJenkins
Copy link

Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/13825/

@CodingCat CodingCat changed the title SPARK-1143: refactor TaskSchedulerImplSuite using taskScheduler.resourceOffer SPARK-1143: refactor TaskSchedulerImplSuite using taskScheduler.resourceOffers Apr 6, 2014
@AmplabJenkins
Copy link

Merged build finished.

@AmplabJenkins
Copy link

Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/13826/

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@AmplabJenkins
Copy link

Merged build finished. All automated tests passed.

@AmplabJenkins
Copy link

All automated tests passed.
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/13828/

@CodingCat
Copy link
Contributor Author

the previous failures are due to timeout and failed to fetch remote repo,

anyone wants to review this?

andrewor14 pushed a commit to andrewor14/spark that referenced this pull request Apr 7, 2014
Conf improvements

There are two new features.

1. Allow users to set arbitrary akka configurations via spark conf.

2. Allow configuration to be printed in logs for diagnosis.
@CodingCat
Copy link
Contributor Author

Hi, @kayousterhout , mind reviewing this?

@kayousterhout
Copy link
Contributor

I won't have time to review this for a week or so

@CodingCat
Copy link
Contributor Author

sure, take your time

I notified you just because you're the original reporter of the issue and I want to ensure I understand the issue correctly

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@AmplabJenkins
Copy link

Merged build finished. All automated tests passed.

@AmplabJenkins
Copy link

All automated tests passed.
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/14066/

@CodingCat
Copy link
Contributor Author

rebased~

@kayousterhout
Copy link
Contributor

The problem I was describing in the JIRA is that all but the last 2 tests in this suite are designed to test the pool / fairness mechanisms (i.e., that the output of rootPool.getSortedTaskSetQueue() is correct), not the scheduler code. I think the right solution here is to move these tests into a separate test suite specifically for the pool stuff -- not to make these tests use the scheduler (since using the scheduler obfuscates where the actually error would be if the tests failed).

@CodingCat
Copy link
Contributor Author

Hi, @kayousterhout, you mean just split the test cases and move some of them to another file?

I can do that...but do you think the test cases specific to the TaskSchedulerImpl class are also missed? (except the last two)

I think the implementation in this patch is equivalent to the original one, as we assume the locality is Any and the assert statements are actually testing the results of rootPool.getSortedTaskSetQueue(),

I think for fully test the critical code path of TaskSchedulerImpl, we need some test cases on the locality?

@kayousterhout
Copy link
Contributor

We definitely don't have sufficient testing for TaskSchedulerImpl right now
(since the only tests that test that at all are the last two in this file),
so at some point adding more tests for that would be good too.

On Sun, Apr 13, 2014 at 2:57 PM, Nan Zhu [email protected] wrote:

Hi, @kayousterhout https://github.com/kayousterhout, you mean just
split the test cases and move some of them to another file?

I can do that...but do you think the test cases specific to the
TaskSchedulerImpl class are also missed?

I think the implementation in this patch is equivalent to the original
one, as we assume the locality is Any and the assert statements are
actually testing the results of rootPool.getSortedTaskSetQueue(),

I think for fully test the critical code path of TaskSchedulerImpl, we
need some test cases on the locality?

Reply to this email directly or view it on GitHubhttps://github.com//pull/339#issuecomment-40321243
.

@CodingCat CodingCat changed the title SPARK-1143: refactor TaskSchedulerImplSuite using taskScheduler.resourceOffers SPARK-1143: refactor TaskSchedulerImplSuite May 13, 2014
@AmplabJenkins
Copy link

Merged build triggered.

@SparkQA
Copy link

SparkQA commented Sep 23, 2014

QA tests have finished for PR 339 at commit 4341383.

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

@SparkQA
Copy link

SparkQA commented Sep 23, 2014

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

@SparkQA
Copy link

SparkQA commented Sep 23, 2014

QA tests have started for PR 339 at commit 0df7499.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Sep 23, 2014

QA tests have finished for PR 339 at commit 0df7499.

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

@SparkQA
Copy link

SparkQA commented Sep 23, 2014

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

@SparkQA
Copy link

SparkQA commented Sep 23, 2014

QA tests have started for PR 339 at commit 50e2463.

  • This patch merges cleanly.

@nchammas
Copy link
Contributor

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

I don't know where this message is coming from, and I don't see any recent changes to the dev/run-tests-jenkins script to explain it.

@pwendell?

@SparkQA
Copy link

SparkQA commented Sep 23, 2014

QA tests have finished for PR 339 at commit 50e2463.

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

@SparkQA
Copy link

SparkQA commented Sep 23, 2014

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

@nchammas
Copy link
Contributor

nchammas commented Jan 4, 2015

@CodingCat @kayousterhout What's the status of this PR? It hasn't been updated in several months.

@andrewor14
Copy link
Contributor

@kayousterhout does this PR reflect what you had in mind in your description for SPARK-1143

@CodingCat
Copy link
Contributor Author

@andrewor14 I need to add a design doc then?

@kayousterhout
Copy link
Contributor

@CodingCat @andrewor14 This isn't quite what I had in mind; I'm going to submit a (simpler) PR for this in the next few hours. I think this one is more complicated than necessary.

@andrewor14
Copy link
Contributor

No need for design doc; I thought for a second you were refactoring TaskSchedulerImpl itself. My mistake.

@andrewor14
Copy link
Contributor

Ok, since @kayousterhout is planning on submitting a simpler version of this, @CodingCat would you mind closing this PR?

@CodingCat
Copy link
Contributor Author

sure

@CodingCat CodingCat closed this Jan 8, 2015
kayousterhout added a commit to kayousterhout/spark-1 that referenced this pull request Jan 9, 2015
The current TaskSchedulerImplSuite includes some tests that are
actually for the TaskSchedulerImpl, but many of the tests avoid using
the TaskSchedulerImpl entirely, and actually test the pool and scheduling
algorithm mechanisms. This commit separates the pool/scheduling algorithm
tests into their own suite, simplifies those tests, and attempts to
more helpfully comment the fair scheduler test.

The pull request replaces apache#339.
asfgit pushed a commit that referenced this pull request Jan 9, 2015
The current TaskSchedulerImplSuite includes some tests that are
actually for the TaskSchedulerImpl, but the remainder of the tests avoid using
the TaskSchedulerImpl entirely, and actually test the pool and scheduling
algorithm mechanisms. This commit separates the pool/scheduling algorithm
tests into their own suite, and also simplifies those tests.

The pull request replaces #339.

Author: Kay Ousterhout <[email protected]>

Closes #3967 from kayousterhout/SPARK-1143 and squashes the following commits:

8a898c4 [Kay Ousterhout] [SPARK-1143] Separate pool tests into their own suite.
bzhaoopenstack pushed a commit to bzhaoopenstack/spark that referenced this pull request Sep 11, 2019
Fix if issue in keyword contain case
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.

6 participants