Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

/registry/protocol/protocol.go:83 getRegistry获取zk对象错误问题 #2348

Closed
TXYan opened this issue Jul 4, 2023 · 3 comments
Closed

Comments

@TXYan
Copy link

TXYan commented Jul 4, 2023

Environment

  • Client: Dubbo-go, v3.0.5
  • Protocol: dubbo
  • Registry: zookeeper

Issue description

yaml中配置了两个注册中心:R1,R2,都是zk,地址一样,只是group不一样。配置了两个消费接口S1,S2,S1注册中心配置R1,S2注册中心配置R2,程序中S1,S2都有调用,发现其中一个会找不到提供者,通过跟代码发现获取注册对象是根据registryUrl.PrimitiveURL进行唯一识别获取,但此URL中没有group因素,导致R1,R2获取的是同一个对象,就看哪个先加载了,在查找提供者拼接路径时会使用registry的group属性,所以导致随机找不到其中一个提供者

Logs

Click me to check logs
Copy logs to here.
@justxuewei
Copy link
Member

Thank you for reporting this issue. We will take a look at this.

@TXYan
Copy link
Author

TXYan commented Jul 12, 2023

顺便问下,有没有类似RpcContext的对象,我想拿到本次调用的远程ip

@justxuewei
Copy link
Member

Assign to @wudong5

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants