You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2021/11/25 03:47:11 UTC

[dubbo] branch 3.0 updated: Change to ConcurrentHashMap for CacheableFailbackRegistry (#9313)

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

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


The following commit(s) were added to refs/heads/3.0 by this push:
     new 24bb3d9  Change to ConcurrentHashMap for CacheableFailbackRegistry (#9313)
24bb3d9 is described below

commit 24bb3d9ccaeecf2478099fa9d3b472f8d5fbe4ba
Author: Albumen Kevin <jh...@gmail.com>
AuthorDate: Thu Nov 25 11:46:42 2021 +0800

    Change to ConcurrentHashMap for CacheableFailbackRegistry (#9313)
---
 .../org/apache/dubbo/registry/support/CacheableFailbackRegistry.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/support/CacheableFailbackRegistry.java b/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/support/CacheableFailbackRegistry.java
index bc8b986..ea7c56c 100644
--- a/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/support/CacheableFailbackRegistry.java
+++ b/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/support/CacheableFailbackRegistry.java
@@ -76,7 +76,7 @@ public abstract class CacheableFailbackRegistry extends FailbackRegistry {
     private Semaphore semaphore = new Semaphore(1);
 
     private final Map<String, String> extraParameters;
-    protected final Map<URL, Map<String, ServiceAddressURL>> stringUrls = new HashMap<>();
+    protected final Map<URL, Map<String, ServiceAddressURL>> stringUrls = new ConcurrentHashMap<>();
 
     public CacheableFailbackRegistry(URL url) {
         super(url);