-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-5355] use j.u.c.ConcurrentHashMap instead of TrieMap #4208
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
Conversation
Conflicts: core/src/main/scala/org/apache/spark/SparkConf.scala
|
Test build #26097 has started for PR 4208 at commit
|
|
Test build #26097 has finished for PR 4208 at commit
|
|
Test FAILed. |
|
Test build #26098 has started for PR 4208 at commit
|
|
Test build #26098 has finished for PR 4208 at commit
|
|
Test FAILed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: import order is wrong.
|
LGTM. It would probably be more efficient to have a private |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
while you are at it, define the return type explicitly here (java.util.Map?) since it is non private type
|
Test build #26105 has started for PR 4208 at commit
|
|
Test build #26105 has finished for PR 4208 at commit
|
|
Test PASSed. |
|
Merging in master. Thanks. |
|
@pwendell Should we also include this in 1.2.1? |
|
Yes, let's put it in 1.2.1 as well, since the other patch went in to that branch, too. |
j.u.c.ConcurrentHashMap is more battle tested. cc rxin JoshRosen pwendell Author: Davies Liu <davies@databricks.com> Closes #4208 from davies/safe-conf and squashes the following commits: c2182dc [Davies Liu] address comments, fix tests 3a1d821 [Davies Liu] fix test da14ced [Davies Liu] Merge branch 'master' of github.com:apache/spark into safe-conf ae4d305 [Davies Liu] change to j.u.c.ConcurrentMap f8fa1cf [Davies Liu] change to TrieMap a1d769a [Davies Liu] make SparkConf thread-safe (cherry picked from commit 1420931) Signed-off-by: Josh Rosen <joshrosen@databricks.com>
j.u.c.ConcurrentHashMap is more battle tested.
cc @rxin @JoshRosen @pwendell