hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chia-Ping Tsai (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-18483) The RpcRetryingCaller#translateException doesn't handle RemoteException
Date Mon, 31 Jul 2017 07:19:00 GMT
Chia-Ping Tsai created HBASE-18483:
--------------------------------------

             Summary: The RpcRetryingCaller#translateException doesn't handle RemoteException
                 Key: HBASE-18483
                 URL: https://issues.apache.org/jira/browse/HBASE-18483
             Project: HBase
          Issue Type: Bug
            Reporter: Chia-Ping Tsai
            Priority: Minor


{code}
    if (t instanceof ServiceException) {
      ServiceException se = (ServiceException)t;
      Throwable cause = se.getCause();
      if (cause != null) {
        if (cause instanceof DoNotRetryIOException) {
          throw (DoNotRetryIOException)cause;
        } else if (cause instanceof NeedUnmanagedConnectionException) {
          throw new DoNotRetryIOException(cause);
        }
      }
      // Don't let ServiceException out; its rpc specific.
      t = cause;
      // t could be a RemoteException so go aaround again.
      translateException(t);
    } else if (t instanceof DoNotRetryIOException) {
      throw (DoNotRetryIOException)t;
    } else if (t instanceof NeedUnmanagedConnectionException) {
      throw new DoNotRetryIOException(t);
    }
{code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message