Class ClientExceptionsUtil

java.lang.Object
org.apache.hadoop.hbase.exceptions.ClientExceptionsUtil

@Private @Evolving public final class ClientExceptionsUtil extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • isMetaClearingException

      public static boolean isMetaClearingException(Throwable cur)
    • isSpecialException

      public static boolean isSpecialException(Throwable cur)
    • findException

      public static Throwable findException(Object exception)
      Look for an exception we know in the remote exception: - hadoop.ipc wrapped exceptions - nested exceptions Looks for: RegionMovedException / RegionOpeningException / RegionTooBusyException / RpcThrottlingException
      Returns:
      null if we didn't find the exception, the exception otherwise.
    • getConnectionExceptionTypes

      public static Set<Class<? extends Throwable>> getConnectionExceptionTypes()
      For test only. Usually you should use the isConnectionException(Throwable) method below.
    • isConnectionException

      public static boolean isConnectionException(Throwable e)
      Check if the exception is something that indicates that we cannot contact/communicate with the server.
      Parameters:
      e - exception to check
      Returns:
      true when exception indicates that the client wasn't able to make contact with server
    • translatePFFE

      public static Throwable translatePFFE(Throwable t) throws IOException
      Translates exception for preemptive fast fail checks.
      Parameters:
      t - exception to check
      Returns:
      translated exception
      Throws:
      IOException