-
Notifications
You must be signed in to change notification settings - Fork 28.3k
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-5425: Use synchronised methods in system properties to create SparkConf #4222
Conversation
Test build #26160 has started for PR 4222 at commit
|
Test build #26160 has finished for PR 4222 at commit
|
Test FAILed. |
retest this please |
Test build #26248 has started for PR 4222 at commit
|
Test build #26248 has finished for PR 4222 at commit
|
Test FAILed. |
Explanation of the second commit is in #4220 |
Test build #26315 has started for PR 4222 at commit
|
Test build #26315 has finished for PR 4222 at commit
|
Test FAILed. |
Test build #26319 has started for PR 4222 at commit
|
Test build #26319 has finished for PR 4222 at commit
|
Test PASSed. |
4b6f366
to
8faf2ea
Compare
Test build #26322 has started for PR 4222 at commit
|
Test build #26322 has finished for PR 4222 at commit
|
Test PASSed. |
… system properties - explicit + defaults
Test build #26500 has started for PR 4222 at commit
|
Test build #26500 has finished for PR 4222 at commit
|
Test PASSed. |
I've merged this into |
@jacek-lewandowski can you close this issue? It didnt' close properly because of the way github auto-closes patches into release branches. |
SPARK-5425: Fixed usages of system properties
This patch fixes few problems caused by the fact that the Scala wrapper over system properties is not thread-safe and is basically invalid because it doesn't take into account the default values which could have been set in the properties object. The problem is fixed by modifying
Utils.getSystemProperties
method so that it usesstringPropertyNames
method of theProperties
class, which is thread-safe (internally it creates a defensive copy in a synchronized method) and returns keys of the properties which were set explicitly and which are defined as defaults.The other related problem, which is fixed here. was in
ResetSystemProperties
mix-in. It created a copy of the system properties in the wrong way.This patch also introduces a test case for thread-safeness of SparkConf creation.
Refer to the discussion in #4220 for more details.