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

Failure during delete of zk node for process group can cause issues on leader switch #41

Open
anvinjain opened this issue Feb 28, 2017 · 0 comments

Comments

@anvinjain
Copy link

In ZookeeperBasedBackendAssociationStore, method deAssociateBackendWithProcessGroup:
delete of process group zk node happens. If delete in ZK goes through but there is a n/w issue which leads to exception being thrown by ZK, in-memory data structures will not get updated. Subsequent de-associate calls for that backend will always throw exception because node does not exist when deleting, so in-memory DS will remain in-consistent.

Possible fix is to wrap the delete and update of in-memory DS in a ZK transaction (along with check of existence of node after delete has happened) and corresponding rollback behaviour if any issue occurs in the transaction. Evaluate this fix though, not set in stone

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