You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "InscienceMan (via GitHub)" <gi...@apache.org> on 2023/05/16 12:02:59 UTC

[GitHub] [dubbo] InscienceMan commented on issue #12325: 多注册中心情况下添加group,拓展cluster找不到invoker's url中的对应元数据

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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org