Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change member removal logic to remove members only once. (#4254)
Currently, after removing a member, the logs print an error saying the member cannot be removed because it's not part of the group. This happens because the node tries to remove members more than once. It succeeds the first time but subsequent attempts will fail. This PR adds a check so that the node is not removed if it's already been marked as removed in the old state and is not a current peer of the node. I tested this by adding logs, removing a node, and verifying the node is only removed once and further updates don't try to remove the node again.
- Loading branch information