laywin commented on issue #13675:
URL: https://github.com/apache/dubbo/issues/13675#issuecomment-2002498145
> 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));
The final effect of this code is to obtain the instance and subscribe. When
there is no provider, 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.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]