Package org.apache.hadoop.hbase.client
Class TestFastFail.CallQueueTooBigPffeInterceptor
java.lang.Object
org.apache.hadoop.hbase.client.TestFastFail.CallQueueTooBigPffeInterceptor
- Enclosing class:
- TestFastFail
-
Field Summary
Modifier and TypeFieldDescriptionprotected final long
protected final long
protected long
static AtomicInteger
protected final ConcurrentMap<org.apache.hadoop.hbase.ServerName,
org.apache.hadoop.hbase.client.FailureInfo> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.client.RetryingCallerInterceptorContext
void
handleFailure
(org.apache.hadoop.hbase.client.FastFailInterceptorContext arg0, Throwable arg1) void
handleFailure
(org.apache.hadoop.hbase.client.RetryingCallerInterceptorContext arg0, Throwable arg1) protected void
handleFailureToServer
(org.apache.hadoop.hbase.ServerName serverName, Throwable t) void
handleThrowable
(Throwable arg0, org.apache.hadoop.hbase.ServerName arg1, org.apache.commons.lang3.mutable.MutableBoolean arg2, org.apache.commons.lang3.mutable.MutableBoolean arg3) void
intercept
(org.apache.hadoop.hbase.client.FastFailInterceptorContext arg0) void
intercept
(org.apache.hadoop.hbase.client.RetryingCallerInterceptorContext arg0) protected boolean
isServerInFailureMap
(org.apache.hadoop.hbase.ServerName arg0) protected void
protected boolean
shouldRetryInspiteOfFastFail
(org.apache.hadoop.hbase.client.FailureInfo arg0) toString()
void
updateFailureInfo
(org.apache.hadoop.hbase.client.FastFailInterceptorContext arg0) void
updateFailureInfo
(org.apache.hadoop.hbase.client.RetryingCallerInterceptorContext arg0)
-
Field Details
-
numCallQueueTooBig
-
fastFailThresholdMilliSec
protected final long fastFailThresholdMilliSec -
repeatedFailuresMap
protected final ConcurrentMap<org.apache.hadoop.hbase.ServerName,org.apache.hadoop.hbase.client.FailureInfo> repeatedFailuresMap -
failureMapCleanupIntervalMilliSec
protected final long failureMapCleanupIntervalMilliSec -
lastFailureMapCleanupTimeMilliSec
protected volatile long lastFailureMapCleanupTimeMilliSec
-
-
Constructor Details
-
CallQueueTooBigPffeInterceptor
-
-
Method Details
-
handleFailureToServer
-
intercept
public void intercept(org.apache.hadoop.hbase.client.FastFailInterceptorContext arg0) throws org.apache.hadoop.hbase.exceptions.PreemptiveFastFailException - Throws:
org.apache.hadoop.hbase.exceptions.PreemptiveFastFailException
-
handleFailure
public void handleFailure(org.apache.hadoop.hbase.client.FastFailInterceptorContext arg0, Throwable arg1) throws IOException - Throws:
IOException
-
updateFailureInfo
public void updateFailureInfo(org.apache.hadoop.hbase.client.FastFailInterceptorContext arg0) -
handleThrowable
public void handleThrowable(Throwable arg0, org.apache.hadoop.hbase.ServerName arg1, org.apache.commons.lang3.mutable.MutableBoolean arg2, org.apache.commons.lang3.mutable.MutableBoolean arg3) throws IOException - Throws:
IOException
-
occasionallyCleanupFailureInformation
protected void occasionallyCleanupFailureInformation() -
shouldRetryInspiteOfFastFail
protected boolean shouldRetryInspiteOfFastFail(org.apache.hadoop.hbase.client.FailureInfo arg0) -
intercept
public void intercept(org.apache.hadoop.hbase.client.RetryingCallerInterceptorContext arg0) throws org.apache.hadoop.hbase.exceptions.PreemptiveFastFailException - Throws:
org.apache.hadoop.hbase.exceptions.PreemptiveFastFailException
-
handleFailure
public void handleFailure(org.apache.hadoop.hbase.client.RetryingCallerInterceptorContext arg0, Throwable arg1) throws IOException - Throws:
IOException
-
updateFailureInfo
public void updateFailureInfo(org.apache.hadoop.hbase.client.RetryingCallerInterceptorContext arg0) -
createEmptyContext
public org.apache.hadoop.hbase.client.RetryingCallerInterceptorContext createEmptyContext() -
isServerInFailureMap
protected boolean isServerInFailureMap(org.apache.hadoop.hbase.ServerName arg0) -
toString
-