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

Fix infinite retry if err is "no leader" #9133

Closed
wants to merge 1 commit into from

Conversation

pierreca
Copy link
Contributor

@pierreca pierreca commented Oct 20, 2020

Moving the timeout calculation to the HasTimedOut method effectively
removed it from the code path where either the args aren't implementing
RPCInfo or if the error is "No cluster leader". This fix brings the
timeout calculation before everything else and works as originally
designed even if the args don't implement the RPCInfo interface.

PR that introduced the bug: #8921

Moving the timeout calculation to the HasTimedOut method effectively
removed it from the code path where either the args aren't implementing
RPCInfo or if the error is "No cluster leader". This fix brings the
timeout calculation before everything else and works as originally
designed even if the args don't implement the RPCInfo interface.
@pierreca
Copy link
Contributor Author

this is a good fix but we found more issues in the retry code so to minimize churn I will close this and reopen a PR that addresses more timeout issues later.

@pierreca pierreca closed this Oct 21, 2020
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant