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

web app crash due to zookeeper server kept changing leader every 10 milli seconds #80

Open
sishilong opened this issue Oct 25, 2018 · 2 comments

Comments

@sishilong
Copy link

we are using "node-zookeeper-client" in our node.js server to watch backend zookeeper event change.
we are using getData like here https://github.com/alexguan/node-zookeeper-client/blob/master/examples/get.js

And recently, the backend zookeeper kept changing leader every 10 milliseconds(which is flapping, we will fix this issue on the backend for sure). however, in the meantime, our Web app is crashing due to page fault because the event change watcher continually process leadership change event on node.js.

is there a way to fix this?

@alexguan
Copy link
Owner

What’s the stacktrace?

@sishilong
Copy link
Author

i did not see any stack trace on node.js server log. just saw flooded
NODE_DATA_CHANGED[3] in the node js server log, after that the web url is unaccessible.

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