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

Vault 7338/fix retry join #16550

Merged
merged 8 commits into from
Aug 4, 2022
Merged

Vault 7338/fix retry join #16550

merged 8 commits into from
Aug 4, 2022

Conversation

mpalmi
Copy link
Contributor

@mpalmi mpalmi commented Aug 3, 2022

This PR addresses a bug found in #16486

The retry_join loop in JoinRaftCluster continues to execute if a call to join() returns with an error.

Commit introduced a change which removes an erroneous error wrapper, but did not
handle the case where a join was in progress and err == nil. This ends the
retry_join loop and prevents a node from waiting to join.

Fix this by handling the nil channel response and returning an
error, allowing the retry_join to continue.

Commit 8db66f4853abce3f432adcf1724b1f237b275415 introduced an error
wherein a join() would return nil (no error) with no information on its
channel if a joining node had been initialized. This was not handled
properly by the caller and resulted in a canceled `retry_join`.

Fix this by handling the `nil` channel respone by treating it as an
error and allowing the existing mechanics to work as intended.
@mpalmi mpalmi added bug Used to indicate a potential bug backport/1.9.x labels Aug 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Used to indicate a potential bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants