Package org.apache.hadoop.hbase.client
Class TestFastFail.CallQueueTooBigPffeInterceptor
java.lang.Object
org.apache.hadoop.hbase.client.TestFastFail.CallQueueTooBigPffeInterceptor
- Enclosing class:
- TestFastFail
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final longprotected final longprotected longstatic AtomicIntegerprotected final ConcurrentMap<org.apache.hadoop.hbase.ServerName,org.apache.hadoop.hbase.client.FailureInfo> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.client.RetryingCallerInterceptorContextvoidhandleFailure(org.apache.hadoop.hbase.client.FastFailInterceptorContext arg0, Throwable arg1) voidhandleFailure(org.apache.hadoop.hbase.client.RetryingCallerInterceptorContext arg0, Throwable arg1) protected voidhandleFailureToServer(org.apache.hadoop.hbase.ServerName serverName, Throwable t) voidhandleThrowable(Throwable arg0, org.apache.hadoop.hbase.ServerName arg1, org.apache.commons.lang3.mutable.MutableBoolean arg2, org.apache.commons.lang3.mutable.MutableBoolean arg3) voidintercept(org.apache.hadoop.hbase.client.FastFailInterceptorContext arg0) voidintercept(org.apache.hadoop.hbase.client.RetryingCallerInterceptorContext arg0) protected booleanisServerInFailureMap(org.apache.hadoop.hbase.ServerName arg0) protected voidprotected booleanshouldRetryInspiteOfFastFail(org.apache.hadoop.hbase.client.FailureInfo arg0) toString()voidupdateFailureInfo(org.apache.hadoop.hbase.client.FastFailInterceptorContext arg0) voidupdateFailureInfo(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
-