We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c224d3 commit 0cc05ddCopy full SHA for 0cc05dd
sql/core/src/main/scala/org/apache/spark/sql/SQLConf.scala
@@ -50,8 +50,9 @@ private[spark] object SQLConf {
50
trait SQLConf {
51
import SQLConf._
52
53
- @transient protected[spark] val settings =
54
- new java.util.concurrent.ConcurrentHashMap[String, String]
+ /** Only low degree of contention is expected for conf, thus NOT using ConcurrentHashMap. */
+ @transient protected[spark] val settings = java.util.Collections.synchronizedMap(
55
+ new java.util.HashMap[String, String]())
56
57
/** ************************ Spark SQL Params/Hints ******************* */
58
// TODO: refactor so that these hints accessors don't pollute the name space of SQLContext?
0 commit comments