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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to