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 不停的重复注册服务 #2533

Closed
KeRan213539 opened this issue Mar 26, 2020 · 1 comment
Closed

dubbo 不停的重复注册服务 #2533

KeRan213539 opened this issue Mar 26, 2020 · 1 comment
Milestone

Comments

@KeRan213539
Copy link
Collaborator

使用 nacos 1.1.4 时没问题
使用nacos 1.2.0 时候出现 dubbo 提供者不停的重复注册服务.
nacos为单节点模式,没有使用集群

@KeRan213539
Copy link
Collaborator Author

  • 经查是因为nacos这边在处理心跳信息时,当心跳信息中没有clusterName的时候,没有为RsInfo设置clusterName的默认值.导致后面的处理根据clusterName获取到的 cluster 为null, 调用 cluster 时出现异常导致后面更新心跳时间的逻辑没有执行.(因为使用了ScheduledExecutorService 所以异常没有抛出)
  • 由于心跳时间没有更新,心跳检查任务发现心跳超时调用了注销服务的接口
  • 注销服务接口注销了服务后通知了dubbo, dubbo又把该服务重新注册

以上流程无限循环...

目前已修复该问题

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

2 participants