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-5219][Core] Add locks to avoid scheduling race conditions #4019

Closed
wants to merge 1 commit into from
Closed

[SPARK-5219][Core] Add locks to avoid scheduling race conditions #4019

wants to merge 1 commit into from

Conversation

zsxwing
Copy link
Member

@zsxwing zsxwing commented Jan 13, 2015

No description provided.

@SparkQA
Copy link

SparkQA commented Jan 13, 2015

Test build #25471 has started for PR 4019 at commit 36a8b4e.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Jan 13, 2015

Test build #25471 has finished for PR 4019 at commit 36a8b4e.

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

@andrewor14
Copy link
Contributor

Hey @zsxwing can you update the PR title to be more descriptive? Maybe just adding "avoid scheduling race conditions" is sufficient. Also, is there a particular behavior that you observed that is caused by this race condition? Do you have a reproduction of it?

@zsxwing zsxwing changed the title [SPARK-5219][Core] Add locks to avoid race conditions [SPARK-5219][Core] Add locks to avoid scheduling race conditions Jan 14, 2015
@zsxwing
Copy link
Member Author

zsxwing commented Jan 14, 2015

I found it when I dig into codes for another irrelevant failure. Just analyzed the codes and didn't reproduce it.

@andrewor14
Copy link
Contributor

You mentioned there are shared variables that these methods use. Which ones in particular are you referring to?

@zsxwing
Copy link
Member Author

zsxwing commented Jan 17, 2015

These methods are called in threads of TaskResultGetter.getTaskResultExecutor. And they access variables such as isZombie, taskInfos in TaskSetManager, which also are used in TaskSchedulerImpl.

@rxin
Copy link
Contributor

rxin commented Feb 3, 2015

Thanks. I'm merging this into master.

@asfgit asfgit closed this in c306555 Feb 3, 2015
@zsxwing zsxwing deleted the SPARK-5219 branch February 3, 2015 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants