Skip to content

Commit

Permalink
Zen2 node leaving (elastic#36)
Browse files Browse the repository at this point in the history
Adds node leaving based on a simplified MasterService abstraction
  • Loading branch information
ywelsch authored May 9, 2018
1 parent 93ee37d commit a595688
Show file tree
Hide file tree
Showing 3 changed files with 279 additions and 151 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -916,6 +916,10 @@ public boolean hasQuorum(Collection<String> votes) {
return intersection.size() * 2 > nodeIds.size();
}

public Set<String> getNodeIds() {
return nodeIds;
}

@Override
public String toString() {
return "VotingConfiguration{" + String.join(",", nodeIds) + "}";
Expand Down
Loading

0 comments on commit a595688

Please sign in to comment.