-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-7792] [SQL] HiveContext registerTempTable not thread safe #6699
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
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.
Actually it's a bad idea to put a scala wrapper around java's ConcurrentHashMap. Do you mind just removing the wrapper, and change the call site to just use the functions defined in ConcurrentHashMap?
Also would be great to mark tables as a private val.
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.
For more background, see https://github.com/databricks/scala-style-guide#concurrency
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.
Oh, is it? Thanks. I got it.
|
Jenkins, test this please. |
|
Test build #34543 has finished for PR 6699 at commit
|
|
Jenkins, test this please. |
|
Test build #34549 has finished for PR 6699 at commit
|
|
Thanks. I'm going to merge this into master. |
Just replaced mutable.HashMap to ConcurrentHashMap Author: navis.ryu <[email protected]> Closes apache#6699 from navis/SPARK-7792 and squashes the following commits: f03654a [navis.ryu] [SPARK-7792] [SQL] HiveContext registerTempTable not thread safe
Just replaced mutable.HashMap to ConcurrentHashMap Author: navis.ryu <[email protected]> Closes apache#6699 from navis/SPARK-7792 and squashes the following commits: f03654a [navis.ryu] [SPARK-7792] [SQL] HiveContext registerTempTable not thread safe Conflicts: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Catalog.scala
Just replaced mutable.HashMap to ConcurrentHashMap