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

HDDS-3046. Fix Retry handling in Rpc Client. #575

Merged
merged 1 commit into from Feb 24, 2020

Conversation

bharatviswa504
Copy link
Contributor

What changes were proposed in this pull request?

Right now for all other exceptions other than serviceException we use FailOverOnNetworkException.

This Exception policy is created with 15 max fail overs and 15 retries.

retryPolicyOnNetworkException.shouldRetry(
exception, retries, failovers, isIdempotentOrAtMostOnce);
2 issues with this:

When shouldRetry returns action FAILOVER_AND_RETRY, it will stuck with same OM, and does not perform failover to next OM. As OMFailoverProxyProvider#performFailover() is a dummy call does not perform any failover.
When ozone.client.failover.max.attempts is set to 15, now with 2 policies with each set to 15, we will retry 15*2 times in worst scenario.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-3046

How was this patch tested?

Deployed fix on OM HA cluster and did failover and it worked fine. And existing tests should cover this.

@hanishakoneru
Copy link
Contributor

LGTM. +1. Thanks Bharat for fixing this.

@hanishakoneru hanishakoneru merged commit 8ef5c39 into apache:master Feb 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants