caofei88 opened a new issue #8097:
URL: https://github.com/apache/dubbo/issues/8097


   
背景:provider起两个服务,使用parameters参数,consumer中去订阅,发现在Directory拿到List<Invoker<T>>与nacos注册中心不一致
   问题定位代码在类DubboCloudRegistry  154行 方法subscribeURLs里面调用
   172的这行代码有问题:
      List<URL> subscribedURLs = this.cloneExportedURLs(subscribedURL, 
serviceInstances);
   拿到的url对象跟nacos中metadata信息不一致,  多次debug执行会产生不一样的结果 (dubbo 2.7.6 2.7.8同样存在)
   
   demo地址见:[email protected]:caofei88/dubbo-spring-cloud-demo.git
   
    部分provider配置
     provider:                                      
       filter: tracing
       parameters:
         dcCode: "dcCode1"         
    
     provider:
       filter: tracing
       parameters:
         dcCode: "dcCode2"


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

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