You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@linkis.apache.org by ja...@apache.org on 2023/04/21 13:05:32 UTC

[linkis] branch dev-1.4.0 updated: Updatethe volatile key for singleton (#4477)

This is an automated email from the ASF dual-hosted git repository.

jackxu2011 pushed a commit to branch dev-1.4.0
in repository https://gitbox.apache.org/repos/asf/linkis.git


The following commit(s) were added to refs/heads/dev-1.4.0 by this push:
     new d67e6d1e0 Updatethe volatile key for singleton (#4477)
d67e6d1e0 is described below

commit d67e6d1e06ded3afffc8cc60af438a1820d18eae
Author: ChengJie1053 <18...@163.com>
AuthorDate: Fri Apr 21 21:05:24 2023 +0800

    Updatethe volatile key for singleton (#4477)
    
    * Updatethe volatile key for singleton
---
 .../linkis/engineplugin/openlookeng/OpenLooKengECPlugin.java      | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/linkis-engineconn-plugins/openlookeng/src/main/java/org/apache/linkis/engineplugin/openlookeng/OpenLooKengECPlugin.java b/linkis-engineconn-plugins/openlookeng/src/main/java/org/apache/linkis/engineplugin/openlookeng/OpenLooKengECPlugin.java
index 259fc5a46..a8b90f112 100644
--- a/linkis-engineconn-plugins/openlookeng/src/main/java/org/apache/linkis/engineplugin/openlookeng/OpenLooKengECPlugin.java
+++ b/linkis-engineconn-plugins/openlookeng/src/main/java/org/apache/linkis/engineplugin/openlookeng/OpenLooKengECPlugin.java
@@ -34,11 +34,11 @@ import java.util.Map;
 
 public class OpenLooKengECPlugin implements EngineConnPlugin {
 
-  private final Object resourceLocker = new Object();
-  private final Object engineFactoryLocker = new Object();
+  private Object resourceLocker = new Object();
+  private Object engineFactoryLocker = new Object();
 
-  private EngineResourceFactory engineResourceFactory;
-  private EngineConnFactory engineFactory;
+  private volatile EngineResourceFactory engineResourceFactory;
+  private volatile EngineConnFactory engineFactory;
 
   private final List<Label<?>> defaultLabels = new ArrayList<>();
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org