[ 
https://issues.apache.org/jira/browse/HDDS-17320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated HDDS-17320:
----------------------------------
    Labels: pull-request-available  (was: )

> SCM client does not recognize RetriableWithNoFailoverException returned by SCM
> ------------------------------------------------------------------------------
>
>                 Key: HDDS-17320
>                 URL: https://issues.apache.org/jira/browse/HDDS-17320
>             Project: Apache Ozone
>          Issue Type: Bug
>          Components: SCM Client
>            Reporter: Siyao Meng
>            Assignee: Siyao Meng
>            Priority: Major
>              Labels: pull-request-available
>
> SCM converts errors that should be retried on the same SCM (Ratis 
> {{LeaderNotReadyException}}, {{ReconfigurationInProgressException}}, 
> {{ReconfigurationTimeoutException}}, {{ResourceUnavailableException}}, and 
> some certificate failures) to {{RetriableWithNoFailoverException}} 
> (HDDS-5050). The SCM client checks for it with 
> {{SCMHAUtils.checkRetriableWithNoFailoverException}}, which looks at the 
> exception unwrapped from {{RemoteException}}. But 
> {{RetriableWithNoFailoverException}} has no {{String}} constructor, so 
> {{RemoteException.unwrapRemoteException()}} cannot create it and returns the 
> {{RemoteException}} itself. The check never matches, so the client fails over 
> to another SCM instead of retrying the same one.
> Proposed fix: also match the class name of the {{RemoteException}}.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to