You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Siyao Meng (Jira)" <ji...@apache.org> on 2026/10/22 11:07:00 UTC

[jira] [Created] (HDDS-17320) SCM client does not recognize RetriableWithNoFailoverException returned by SCM

Siyao Meng created HDDS-17320:
---------------------------------

             Summary: 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


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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org