Class ClientExceptionsUtil
java.lang.Object
org.apache.hadoop.hbase.exceptions.ClientExceptionsUtil
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 / RpcThrottlingExceptionFor test only.static boolean
Check if the exception is something that indicates that we cannot contact/communicate with the server.static boolean
static boolean
static Throwable
Translates exception for preemptive fast fail checks.
-
Field Details
-
CONNECTION_EXCEPTION_TYPES
private static final org.apache.hbase.thirdparty.com.google.common.collect.ImmutableSet<Class<? extends Throwable>> CONNECTION_EXCEPTION_TYPES
-
-
Constructor Details
-
ClientExceptionsUtil
private ClientExceptionsUtil()
-
-
Method Details
-
isMetaClearingException
-
isSpecialException
-
findException
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
For test only. Usually you should use theisConnectionException(Throwable)
method below. -
isConnectionException
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
Translates exception for preemptive fast fail checks.- Parameters:
t
- exception to check- Returns:
- translated exception
- Throws:
IOException
-