This is an automated email from the ASF dual-hosted git repository.
peacewong pushed a commit to branch dev-1.3.2
in repository https://gitbox.apache.org/repos/asf/incubator-linkis.git
The following commit(s) were added to refs/heads/dev-1.3.2 by this push:
new 8a49d40cf fix: fixed the putAll method exception in debug mode (#4037)
8a49d40cf is described below
commit 8a49d40cfee119c0533c7ae5d875f68bb43237ef
Author: jacktao007 <[email protected]>
AuthorDate: Wed Dec 21 09:49:52 2022 +0800
fix: fixed the putAll method exception in debug mode (#4037)
---
.../main/scala/org/apache/linkis/common/conf/BDPConfiguration.scala | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git
a/linkis-commons/linkis-common/src/main/scala/org/apache/linkis/common/conf/BDPConfiguration.scala
b/linkis-commons/linkis-common/src/main/scala/org/apache/linkis/common/conf/BDPConfiguration.scala
index 3ffd58a19..55535e533 100644
---
a/linkis-commons/linkis-common/src/main/scala/org/apache/linkis/common/conf/BDPConfiguration.scala
+++
b/linkis-commons/linkis-common/src/main/scala/org/apache/linkis/common/conf/BDPConfiguration.scala
@@ -119,8 +119,7 @@ private[conf] object BDPConfiguration extends Logging {
tmpConfig = config
}
lock.writeLock().lock()
- configReload.clear()
- configReload.putAll(tmpConfig)
+ tmpConfig.asScala.foreach(keyValue =>
configReload.setProperty(keyValue._1, keyValue._2))
lock.writeLock().unlock()
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]