Skip to content

fix(JoinCluster): Avoid retrying JoinCluster indefinitely #7961

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

Merged
merged 2 commits into from
Jul 27, 2021

Conversation

manishrjain
Copy link
Contributor

@manishrjain manishrjain commented Jul 27, 2021

If a Zero follower receives a JoinCluster request, it won't process the proposal because it can't forward the request to leader. Raft doesn't send an error back in this case. In the current code, it would retry indefinitely. With this change, we now use the request context to give up at some point.


This change is Reviewable

@manishrjain manishrjain merged commit c2e1476 into master Jul 27, 2021
@manishrjain manishrjain deleted the mrjn/avoid-retrying-joincluster-indefinitely branch July 27, 2021 23:16
dshekhar95 pushed a commit that referenced this pull request Nov 29, 2022
If a Zero follower receives a JoinCluster request, it won't process the proposal because it can't forward the request to leader. Raft doesn't send an error back in this case. In the current code, it would retry indefinitely. With this change, we now use the request context to give up at some point.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant