You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@linkis.apache.org by pe...@apache.org on 2022/12/21 01:50:00 UTC
[incubator-linkis] branch dev-1.3.2 updated: fix: fixed the putAll method exception in debug mode (#4037)
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 <zh...@apache.org>
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: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org