Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

修复 bug:当dubbo接口注册为服务别称时,consumer端找不到可用 provider #30

Merged
merged 1 commit into from Jul 28, 2023

Conversation

amyson
Copy link
Contributor

@amyson amyson commented Jul 28, 2023

背景: ZooKeeper内注册的dubbo服务同步到Polaris时,把url中的{application}注册为服务,url中的{interface}注册为服务别称。
问题: 当consumer端调用服务时,是把{interface}作为服务从Polaris获取实例;而Polars返回实例的interface仍然是{application},引发“No provider available……” 错误。
解决方案: 从Polaris得到实例列表时,把实例元数据的 interface 直接设置为被调 interface

@Melodyl-xyz Melodyl-xyz merged commit 9190f89 into polarismesh:main Jul 28, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants