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

Build Cluster object for ZooKeeper the same way as for Etcd #37

Conversation

CyberDem0n
Copy link
Collaborator

Previous implementation was always setting Cluster.initialize to True.
Also it was throwing ZooKeeperError when there were no members in a
cluster.

Plus BUGFIX of a bug introduced with
#34 in a load_members method.

  • data = self.get_node(self.member_path)
  • data = self.get_node(self.members_path + member)
    It was always fetching the same node for all cluster members.
    Fortunately Etcd doesn't have such problem because we are fetching the
    whole cluster directory with one recursive API call.

Alexander Kukushkin added 4 commits September 14, 2015 11:19
Previous implementation was always setting Cluster.initialize to True.
Also it was throwing ZooKeeperError when there were no members in a
cluster.

Plus BUGFIX of a bug introduced with
#34 in a `load_members` method.
- data = self.get_node(self.member_path)
+ data = self.get_node(self.members_path + member)
It was always fetching the same node for all cluster members.
Fortunately Etcd doesn't have such problem because we are fetching the
whole cluster directory with one recursive API call.
All other exceptions are needed to have retry functionality working
correctly.
alexeyklyukin pushed a commit that referenced this pull request Sep 14, 2015
Build Cluster object for ZooKeeper the same way as for Etcd
@alexeyklyukin alexeyklyukin merged commit d69403a into feature/cleanup_on_failed_initialization Sep 14, 2015
@CyberDem0n CyberDem0n deleted the feature/zookeeper-fetch-initialize branch September 14, 2015 14:04
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

Successfully merging this pull request may close these issues.

None yet

2 participants