Bharat Viswanadham created HDDS-2311:
----------------------------------------

             Summary: Fix logic in RetryPolicy in OzoneClientSideTranslatorPB
                 Key: HDDS-2311
                 URL: https://issues.apache.org/jira/browse/HDDS-2311
             Project: Hadoop Distributed Data Store
          Issue Type: Task
            Reporter: Bharat Viswanadham


OzoneManagerProtocolClientSideTranslatorPB.java

L251: if (cause instanceof NotLeaderException) {
 NotLeaderException notLeaderException = (NotLeaderException) cause;
 omFailoverProxyProvider.performFailoverIfRequired(
 notLeaderException.getSuggestedLeaderNodeId());
 return getRetryAction(RetryAction.RETRY, retries, failovers);
 }

 

The suggested leader returned from Server is not used during failOver, as the 
cause is a type of RemoteException. So with current code, it does not use 
suggested leader for failOver at all and by default with each OM, it tries max 
retries.

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-h...@hadoop.apache.org

Reply via email to