Skip to content

Commit 0740f28

Browse files
committed
Update SQLConf.scala
use concurrent.ConcurrentHashMap instead of util.Collections.synchronizedMap
1 parent 04fa122 commit 0740f28

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sql/core/src/main/scala/org/apache/spark/sql/SQLConf.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ trait SQLConf {
5050
/** ********************** SQLConf functionality methods ************ */
5151

5252
@transient
53-
private val settings = java.util.Collections.synchronizedMap(
54-
new java.util.HashMap[String, String]())
53+
private val settings = new java.util.concurrent.ConcurrentHashMap[String, String]()
5554

5655
def set(props: Properties): Unit = {
5756
props.asScala.foreach { case (k, v) => this.settings.put(k, v) }

0 commit comments

Comments
 (0)