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

albumenj pushed a commit to branch 3.2
in repository https://gitbox.apache.org/repos/asf/dubbo.git


The following commit(s) were added to refs/heads/3.2 by this push:
     new 56ac4b81c1 feat: fix deploy listener exception (#11351)
56ac4b81c1 is described below

commit 56ac4b81c1ae6a906023e59824e258f458f9c749
Author: aamingaa <[email protected]>
AuthorDate: Thu Jan 19 21:14:09 2023 +0800

    feat: fix deploy listener exception (#11351)
    
    * feat: fix deploy listener exception
    
    * feat: remove unuse import
---
 .../main/java/org/apache/dubbo/common/deploy/AbstractDeployer.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/dubbo-common/src/main/java/org/apache/dubbo/common/deploy/AbstractDeployer.java
 
b/dubbo-common/src/main/java/org/apache/dubbo/common/deploy/AbstractDeployer.java
index b9590e9def..04ae6826c7 100644
--- 
a/dubbo-common/src/main/java/org/apache/dubbo/common/deploy/AbstractDeployer.java
+++ 
b/dubbo-common/src/main/java/org/apache/dubbo/common/deploy/AbstractDeployer.java
@@ -20,8 +20,8 @@ import org.apache.dubbo.common.logger.ErrorTypeAwareLogger;
 import org.apache.dubbo.common.logger.LoggerFactory;
 import org.apache.dubbo.rpc.model.ScopeModel;
 
-import java.util.ArrayList;
 import java.util.List;
+import java.util.concurrent.CopyOnWriteArrayList;
 
 import static 
org.apache.dubbo.common.constants.LoggerCodeConstants.COMMON_MONITOR_EXCEPTION;
 import static org.apache.dubbo.common.deploy.DeployState.FAILED;
@@ -41,7 +41,7 @@ public abstract class AbstractDeployer<E extends ScopeModel> 
implements Deployer
 
     protected volatile boolean initialized = false;
 
-    protected List<DeployListener<E>> listeners = new ArrayList<>();
+    protected List<DeployListener<E>> listeners = new CopyOnWriteArrayList<>();
 
     private E scopeModel;
 

Reply via email to