AlbumenJ commented on issue #13675:
URL: https://github.com/apache/dubbo/issues/13675#issuecomment-2002771902

   > > In org/apache/dubbo/config/deploy/DefaultModuleDeployer.java:183
   > 
   > i think there is also exist the problem, the case is come from.
   > 
   > ```java
   >                 for (String serviceName : serviceNames) {
   >                     List<Instance> instances =
   >                             namingService.getAllInstances(serviceName, 
getUrl().getGroup(Constants.DEFAULT_GROUP));
   >                     notifySubscriber(url, serviceName, listener, 
instances);
   >                 }
   >                 for (String serviceName : serviceNames) {
   >                     subscribeEventListener(serviceName, url, listener);
   >                 }
   > ```
   > 
   > **namingService.getAllInstances(serviceName, 
getUrl().getGroup(Constants.DEFAULT_GROUP));**
   > 
   > When there is no provider, The final effect of this code is to obtain the 
instance and subscribe. the subscription at this time has side effects. The 
reason is that the listener is not registered.
   > 
   > Before the listener is registered, if the service provider registration 
message is received, Then the message will be lost.
   
   > The reason is that the listener is not registered.
   Why?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org
For additional commands, e-mail: notifications-h...@dubbo.apache.org

Reply via email to