-
Notifications
You must be signed in to change notification settings - Fork 26.5k
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
RMI协议同一个服务提供者中,分组和版本不起作用 #9913
Comments
我看了相关代码,存在你说的版本、分组无效问题。 原因在于RMI 绑定到Registry注册表时name(远程引用对象关联的名称)不能重复,如果重复会报AlreadyBoundException异常。dubbo-rpc-rmi模块中用的RmiServiceExporter对象完成绑定操作,其replaceExistingBinding属性默认为true,所以会调用rebind方法进行重绑定,name相同会覆盖。 目前dubbo中绑定的name值是接口全限定名,未包含分组和版本标识。 本地已测可行。我在RmiProtocol类中调整了doRefer()、createExporter()代码后,版本和分组已生效。 但我切换3.0.7分支后,发现dubbo-rpc-rmi相关模块已移除。所以我不清楚这是不是bug。 |
调整doRefer()、createExporter()我在本地也尝试过,基本功能没问题,但是不确定是否会带来其他影响,dubbo2.7 是否还会有相关的补丁发布呢,dubbo3的rmi协议应该是要重新适配 https://github.com/apache/dubbo/issues/7781, |
Thanks for your feedback. |
I submitted a pr, please check, thanks. |
系统版本
问题出现的步骤
The text was updated successfully, but these errors were encountered: