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

When using multi statem call only retry for certain errors. #433

Merged
merged 1 commit into from
Apr 23, 2024

Conversation

kjnilsson
Copy link
Contributor

@kjnilsson kjnilsson commented Apr 23, 2024

Instead of trying all server ids in the supplied list whenever an error or timeout was encountered this change only retries when certain errors such as noproc, nodedown etc is encountered.

If all errors result in a retry genuine API errors such as {error, not_member} in response to a ra:remove_member/2 interaction would be hidden in the aggregate error that is returned once all members have returned.

Related: rabbitmq/rabbitmq-server#11029

Instead of trying all server ids in the supplied list whenever an
error or timeout was encountered this change only retries when
certain errors such as noproc, nodedown etc is encountered.

If all errors result in a retry genuine API errors such as
{error, not_member} in reposnse to a ra:remove_member/2 interaction
would be hidden in the aggregate error that is returned once
all members have returned.
@kjnilsson kjnilsson marked this pull request as ready for review April 23, 2024 16:15
@kjnilsson kjnilsson requested a review from the-mikedavis April 23, 2024 16:16
@kjnilsson kjnilsson merged commit 41beec4 into main Apr 23, 2024
10 checks passed
@kjnilsson kjnilsson added this to the 2.10.0 milestone Apr 24, 2024
@dumbbell dumbbell deleted the multi-state-call-fix branch July 9, 2024 15:17
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.

2 participants