You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@dubbo.apache.org by GitBox <gi...@apache.org> on 2018/04/08 02:44:12 UTC

[GitHub] beiwei30 commented on issue #1508: feature required: set registrydirectory to AP when implementation is CP

beiwei30 commented on issue #1508: feature required: set registrydirectory to AP when implementation is CP
URL: https://github.com/apache/incubator-dubbo/issues/1508#issuecomment-379514920
 
 
   dubbo already considered this scenario:
   
   ```java
               if (invokerUrls.isEmpty() && this.cachedInvokerUrls != null) {
                   invokerUrls.addAll(this.cachedInvokerUrls);
               } else {
                   this.cachedInvokerUrls = new HashSet<URL>();
                   this.cachedInvokerUrls.addAll(invokerUrls);//Cached invoker urls, convenient for comparison
               }
               if (invokerUrls.isEmpty()) {
                   return;
               }
   ```
   
   if the addresses from the register center is empty, then the cached address list `cachedInvokerUrls` will be used. 
   
   feel free to reopen this issue if you do not agree.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services