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

dubbo 2.7.1 只订阅功能失效 #3836

Closed
guijiahai opened this issue Apr 9, 2019 · 3 comments
Closed

dubbo 2.7.1 只订阅功能失效 #3836

guijiahai opened this issue Apr 9, 2019 · 3 comments
Milestone

Comments

@guijiahai
Copy link

Environment

  • Dubbo version: 2.7.1
  • Operating System version: win 7
  • Java version: 1.8

Steps to reproduce this issue

  1. 在 <dubbo:registry ... register="true" />情况下,运行应用,待注册完成后,停止应用。
  2. 在 <dubbo:registry ... register="false" />情况下,再次运行应用,发现service仍然会注册在zk上

经过排查,dubbo 2.7.1的服务提供者,默认是持久的注册到zk上(2.6.*是临时的)。
除了“只订阅”功能失效,还有其他问题:
当修改service信息后,url也随之变化,结果同一个service在zk上存在多条注册记录。

目前,只能通过设置 <dubbo:service dynamic="true">来实现临时注册;请问还有全局的设置方法吗?
另外,请问为什么要永久的注册到zk上,而不是临时呢?

@guijiahai
Copy link
Author

通过 <dubbo:provider dynamic="true">来设置,但是最终会被 ServiceConfig.dynamic(false)覆盖掉,所以只能通过<dubbo:service dynamic="true">来设置?

@carryxyh
Copy link
Member

carryxyh commented Apr 9, 2019

Same issue here:
#3785

Will be fixed in next release.

@guijiahai
Copy link
Author

ok

@beiwei30 beiwei30 added this to the 2.7.2 milestone Apr 12, 2019
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

No branches or pull requests

3 participants