myhaiting opened a new issue, #4643:
URL: https://github.com/apache/servicecomb-java-chassis/issues/4643

   ### 代码实现:
   
https://github.com/apache/servicecomb-java-chassis/blob/27552d28ac0d16eb73b9c0023833aa753fd09173/service-registry/registry-nacos/src/main/java/org/apache/servicecomb/registry/nacos/NacosDiscovery.java#L75-L100
   
   ### 问题描述
   1、当发现demo-service服务时,如果demo-service服务还未注册,subscribe回调不会执行,返回空的List
   2、然后demo-service启动,subscribe执行回调,由于
   ```java
   if (result.getAndSet(false)) {
           // ignore the first event.
           return;
   }
   ```
   实例并不能正常通知,调用服务会报错:no instances
   
   需要依赖的服务提前注册,或者依赖服务再重启一次才能正常发现实例


-- 
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]

Reply via email to