leimbag commented on issue #9623:
URL: https://github.com/apache/dubbo/issues/9623#issuecomment-1021984715


   nacos-client-2.0.3的
   
com.alibaba.nacos.client.naming.core.ServiceInfoUpdateService内部的UpdateTask的run方法,当serviceObj.getLastRefTime()
 <= 
lastRefTime会去查询服务对象,此时返回的服务对象的host为0,进而publish的event内部的host列表也是0,最后在consumer上更新实例会因为是空host产生空的instance,consumer端会无法正常下线生产者服务
   
   ```
                   if (serviceObj.getLastRefTime() <= lastRefTime) {
                       serviceObj = 
namingClientProxy.queryInstancesOfService(serviceName, groupName, clusters, 0, 
false); <==   此处返回空host列表的服务对象
                       serviceInfoHolder.processServiceInfo(serviceObj);
                   }
   ```
   


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

Reply via email to