Class PreemptiveFastFailException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
java.net.SocketException
java.net.ConnectException
org.apache.hadoop.hbase.exceptions.PreemptiveFastFailException
- All Implemented Interfaces:
Serializable
Deprecated.
since 2.3.0, and will be removed in 4.0.0.
Thrown when the client believes that we are trying to communicate to has been repeatedly
unresponsive for a while. On receiving such an exception. The ConnectionManager will skip all
retries and fast fail the operation.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprivate long
Deprecated.private boolean
Deprecated.private static final long
Deprecated.private long
Deprecated.private long
Deprecated. -
Constructor Summary
ConstructorDescriptionPreemptiveFastFailException
(long count, long timeOfFirstFailureMilliSec, long timeOfLatestAttemptMilliSec, ServerName serverName) Deprecated.PreemptiveFastFailException
(long count, long timeOfFirstFailureMilliSec, long timeOfLatestAttemptMilliSec, ServerName serverName, boolean guaranteedClientSideOnly) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionlong
Deprecated.Returns failure countlong
Deprecated.Returns time of the fist failurelong
Deprecated.Returns time of the latest attemptboolean
Deprecated.Returns true if we know no mutation made it to the server, false otherwise.boolean
Deprecated.Returns true if operation was attempted by server, false otherwise.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
Deprecated.- See Also:
-
failureCount
Deprecated. -
timeOfFirstFailureMilliSec
Deprecated. -
timeOfLatestAttemptMilliSec
Deprecated. -
guaranteedClientSideOnly
Deprecated.
-
-
Constructor Details
-
PreemptiveFastFailException
public PreemptiveFastFailException(long count, long timeOfFirstFailureMilliSec, long timeOfLatestAttemptMilliSec, ServerName serverName) Deprecated.- Parameters:
count
- num of consecutive failurestimeOfFirstFailureMilliSec
- when first failure happenedtimeOfLatestAttemptMilliSec
- when last attempt happenedserverName
- server we failed to connect to
-
PreemptiveFastFailException
public PreemptiveFastFailException(long count, long timeOfFirstFailureMilliSec, long timeOfLatestAttemptMilliSec, ServerName serverName, boolean guaranteedClientSideOnly) Deprecated.- Parameters:
count
- num of consecutive failurestimeOfFirstFailureMilliSec
- when first failure happenedtimeOfLatestAttemptMilliSec
- when last attempt happenedserverName
- server we failed to connect toguaranteedClientSideOnly
- if true, guarantees that no mutations have been applied on the server
-
-
Method Details
-
getFirstFailureAt
Deprecated.Returns time of the fist failure -
getLastAttemptAt
Deprecated.Returns time of the latest attempt -
getFailureCount
Deprecated.Returns failure count -
wasOperationAttemptedByServer
Deprecated.Returns true if operation was attempted by server, false otherwise. -
isGuaranteedClientSideOnly
Deprecated.Returns true if we know no mutation made it to the server, false otherwise.
-