Package org.apache.hadoop.hbase.client
Class TestFastFail.MyPreemptiveFastFailInterceptor
java.lang.Object
org.apache.hadoop.hbase.client.TestFastFail.MyPreemptiveFastFailInterceptor
- 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 arg0, Throwable arg1) 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 fInfo) toString()
void
updateFailureInfo
(org.apache.hadoop.hbase.client.FastFailInterceptorContext arg0) void
updateFailureInfo
(org.apache.hadoop.hbase.client.RetryingCallerInterceptorContext arg0)
-
Field Details
-
numBraveSouls
-
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
-
MyPreemptiveFastFailInterceptor
-
-
Method Details
-
shouldRetryInspiteOfFastFail
-
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) -
handleFailureToServer
-
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() -
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
-