@InterfaceAudience.Private @InterfaceStability.Evolving public final class ClientExceptionsUtil extends Object
Modifier and Type | Field and Description |
---|---|
private static org.apache.hbase.thirdparty.com.google.common.collect.ImmutableSet<Class<? extends Throwable>> |
CONNECTION_EXCEPTION_TYPES |
Modifier | Constructor and Description |
---|---|
private |
ClientExceptionsUtil() |
Modifier and Type | Method and Description |
---|---|
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
|
static Set<Class<? extends Throwable>> |
getConnectionExceptionTypes()
For test only.
|
static boolean |
isCallDroppedException(Throwable t)
Checks if the exception is CallDroppedException (maybe wrapped
into some RemoteException).
|
static boolean |
isCallQueueTooBigException(Throwable t)
Checks if the exception is CallQueueTooBig exception (maybe wrapped
into some RemoteException).
|
static boolean |
isConnectionException(Throwable e)
Check if the exception is something that indicates that we cannot contact/communicate with the
server.
|
static boolean |
isMetaClearingException(Throwable cur) |
static boolean |
isSpecialException(Throwable cur) |
static Throwable |
translatePFFE(Throwable t)
Translates exception for preemptive fast fail checks.
|
private static final org.apache.hbase.thirdparty.com.google.common.collect.ImmutableSet<Class<? extends Throwable>> CONNECTION_EXCEPTION_TYPES
private ClientExceptionsUtil()
public static boolean isMetaClearingException(Throwable cur)
public static boolean isSpecialException(Throwable cur)
public static Throwable findException(Object exception)
public static boolean isCallQueueTooBigException(Throwable t)
t
- exception to checkpublic static boolean isCallDroppedException(Throwable t)
t
- exception to checkpublic static Set<Class<? extends Throwable>> getConnectionExceptionTypes()
isConnectionException(Throwable)
method
below.public static boolean isConnectionException(Throwable e)
e
- exception to checkpublic static Throwable translatePFFE(Throwable t) throws IOException
t
- exception to checkIOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.