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-4952][Core]Handle ConcurrentModificationExceptions in SparkEnv.environmentDetails #3788

Closed
wants to merge 1 commit into from

Conversation

witgo
Copy link
Contributor

@witgo witgo commented Dec 24, 2014

No description provided.

@SparkQA
Copy link

SparkQA commented Dec 24, 2014

Test build #24778 has started for PR 3788 at commit d903529.

  • This patch merges cleanly.

@@ -395,7 +395,7 @@ object SparkEnv extends Logging {
val sparkProperties = (conf.getAll ++ schedulerMode).sorted

// System properties that are not java classpaths
val systemProperties = System.getProperties.iterator.toSeq
val systemProperties = Utils.getSystemProperties.toSeq
Copy link
Member

Choose a reason for hiding this comment

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

It wasn't clear to me at first whether this is the culprit, but it looks so since the underlying object being modified is a java.util.Properties. The defensive copy made in Utils should be thread-safe in the sense that Hashtable.clone() is synchronized. LGTM.

@SparkQA
Copy link

SparkQA commented Dec 24, 2014

Test build #24778 has finished for PR 3788 at commit d903529.

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

@pwendell
Copy link
Contributor

Thanks for this patch and @srowen for the review! I'll pull this in.

asfgit pushed a commit that referenced this pull request Dec 27, 2014
….environmentDetails

Author: GuoQiang Li <[email protected]>

Closes #3788 from witgo/SPARK-4952 and squashes the following commits:

d903529 [GuoQiang Li] Handle ConcurrentModificationExceptions in SparkEnv.environmentDetails

(cherry picked from commit 080ceb7)
Signed-off-by: Patrick Wendell <[email protected]>
@asfgit asfgit closed this in 080ceb7 Dec 27, 2014
asfgit pushed a commit that referenced this pull request Dec 27, 2014
….environmentDetails

Author: GuoQiang Li <[email protected]>

Closes #3788 from witgo/SPARK-4952 and squashes the following commits:

d903529 [GuoQiang Li] Handle ConcurrentModificationExceptions in SparkEnv.environmentDetails

(cherry picked from commit 080ceb7)
Signed-off-by: Patrick Wendell <[email protected]>
@witgo witgo deleted the SPARK-4952 branch December 27, 2014 08:33
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