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

zk server闪断导致服务信息丢失, 重新建立连接后无法再次发布该服务 #31

Closed
fengjiachun opened this issue Jul 22, 2017 · 1 comment

Comments

@fengjiachun
Copy link
Owner

fengjiachun commented Jul 22, 2017

Jupiter(397633380)群 @jacksun 指出的问题:
在zk 注册这块是一个异步过程,如果出现zkserver 闪断情况, RegisterMeta 就没法加入registerMetaSet 里面。 所以再重新链接时候registerMetaSet不包含这条数据

@jacksun 的修改建议是1. 启动一个 watchDog 来监控所有节点是否都registerMetaSet已经注册。 2. doRegister 在方法开始加入registerMetaSet 中。 我在zk 闪断测试中,有几率会产生 register Node 注册丢失问题。

@fengjiachun
Copy link
Owner Author

@Coneboy-k 非常感谢

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

1 participant