You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Bharat Viswanadham (Jira)" <ji...@apache.org> on 2020/04/02 06:23:00 UTC

[jira] [Created] (HDDS-3325) Handle Resource Unavailable exception in OM HA

Bharat Viswanadham created HDDS-3325:
----------------------------------------

             Summary: Handle Resource Unavailable exception in OM HA
                 Key: HDDS-3325
                 URL: https://issues.apache.org/jira/browse/HDDS-3325
             Project: Hadoop Distributed Data Store
          Issue Type: Bug
            Reporter: Bharat Viswanadham


Right now, when the future fails with an exception, we send that exception to the client, and retry with a new server if NotLeader, but when using ratis server when resource unavailable exception future fails with exceptionally. So, in this case we need to wrap the exception and retry to the same server with some retry policy like MultiLinearRandomRetry or some retry policy.

{code:java}
try {
 raftClientReply = server.submitClientRequestAsync(raftClientRequest)
          .get();
    } catch (Exception ex) {
      throw new ServiceException(ex.getMessage(), ex);
    }
{code}





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

---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org