Skip to content

Commit

Permalink
add note for use synchronizedMap
Browse files Browse the repository at this point in the history
  • Loading branch information
scwf committed Aug 19, 2014
1 parent 3c224d3 commit 0cc05dd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sql/core/src/main/scala/org/apache/spark/sql/SQLConf.scala
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ private[spark] object SQLConf {
trait SQLConf {
import SQLConf._

@transient protected[spark] val settings =
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(
new java.util.HashMap[String, String]())

/** ************************ Spark SQL Params/Hints ******************* */
// TODO: refactor so that these hints accessors don't pollute the name space of SQLContext?
Expand Down

0 comments on commit 0cc05dd

Please sign in to comment.