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

Purge left nodes along with dead ones (#253) #254

Merged
merged 6 commits into from
Jan 12, 2022

Conversation

bwaters
Copy link
Contributor

@bwaters bwaters commented Jan 5, 2022

Keep the state from infinitely expanding

Copy link
Member

@hanshasselberg hanshasselberg left a 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?

util.go Outdated Show resolved Hide resolved
Copy link
Contributor

@dnephin dnephin left a 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!

util.go Outdated Show resolved Hide resolved
bwaters and others added 4 commits January 10, 2022 07:55
Co-authored-by: Hans Hasselberg <hans@hashicorp.com>
Co-authored-by: Daniel Nephin <dnephin@gmail.com>
@bwaters
Copy link
Contributor Author

bwaters commented Jan 10, 2022

Added StateLeft to the moveDeadNodes test. Should be all set @i0rek

util_test.go Outdated Show resolved Hide resolved
@markan markan self-assigned this Jan 11, 2022
Copy link
Member

@hanshasselberg hanshasselberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kisunji kisunji merged commit 0bff309 into hashicorp:master Jan 12, 2022
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

5 participants