-
Notifications
You must be signed in to change notification settings - Fork 446
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
Purge left nodes along with dead ones (#253) #254
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me, thanks for the detailed explanation in the corresponding issue. Could you modify TestMoveDeadNodes
to have a nodestate in StateDead
to make sure it is working as intended?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix! One suggestion for the godoc.
Is there any way we can test this from within memberlist? If a full integration test makes it difficult to reproduce, maybe just a test of moveDeadNodes
, to show that it moves nodes in both states? Edit: Oh, I missed that Hans already suggested a test for this, that sounds good!
Co-authored-by: Hans Hasselberg <hans@hashicorp.com>
Co-authored-by: Daniel Nephin <dnephin@gmail.com>
Added StateLeft to the moveDeadNodes test. Should be all set @i0rek |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Keep the state from infinitely expanding