InscienceMan commented on issue #12325:
URL: https://github.com/apache/dubbo/issues/12325#issuecomment-1549531804

   单注册中心没有问题,原因多注册中心时,getProtocolServiceKey()方法返回的是带/gray的服务名
   
   
![image](https://github.com/apache/dubbo/assets/96465416/6a3dd23c-49cd-4bfe-ad62-a4c88d4d738e)
   这个服务名是通过上下文获得
   
![image](https://github.com/apache/dubbo/assets/96465416/422397a4-0b13-4017-9655-ab270d0b03f1)
   在执行org.apache.dubbo.rpc.proxy.InvocationUtil.invoke(invoker, 
rpcInvocation)方法时将放入上下文的
   
![image](https://github.com/apache/dubbo/assets/96465416/53435eb0-69e5-4960-af95-798fd5298862)
   
invoker是在ReferenceConfig产生代理时传入的,在ReferenceConfig.createInvokerForRemote()时创建的
   
   
![image](https://github.com/apache/dubbo/assets/96465416/9f19067d-94cc-40da-a4bb-876ae87f89f3)
   
   多注册中心情况下产生的invoker url是会带上registry的group属性,导致元数据匹配不上,这样是存在问题的吧?
   


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