public static class TestFastFail.MyPreemptiveFastFailInterceptor extends Object
Modifier and Type | Field and Description |
---|---|
protected long |
failureMapCleanupIntervalMilliSec |
protected long |
fastFailThresholdMilliSec |
protected long |
lastFailureMapCleanupTimeMilliSec |
static AtomicInteger |
numBraveSouls |
protected ConcurrentMap<org.apache.hadoop.hbase.ServerName,org.apache.hadoop.hbase.client.FailureInfo> |
repeatedFailuresMap |
Constructor and Description |
---|
MyPreemptiveFastFailInterceptor(org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.hbase.client.RetryingCallerInterceptorContext |
createEmptyContext() |
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 |
occasionallyCleanupFailureInformation() |
protected boolean |
shouldRetryInspiteOfFastFail(org.apache.hadoop.hbase.client.FailureInfo fInfo) |
String |
toString() |
void |
updateFailureInfo(org.apache.hadoop.hbase.client.FastFailInterceptorContext arg0) |
void |
updateFailureInfo(org.apache.hadoop.hbase.client.RetryingCallerInterceptorContext arg0) |
public static AtomicInteger numBraveSouls
protected final long fastFailThresholdMilliSec
protected final ConcurrentMap<org.apache.hadoop.hbase.ServerName,org.apache.hadoop.hbase.client.FailureInfo> repeatedFailuresMap
protected final long failureMapCleanupIntervalMilliSec
protected volatile long lastFailureMapCleanupTimeMilliSec
public MyPreemptiveFastFailInterceptor(org.apache.hadoop.conf.Configuration conf)
protected boolean shouldRetryInspiteOfFastFail(org.apache.hadoop.hbase.client.FailureInfo fInfo)
public void intercept(org.apache.hadoop.hbase.client.FastFailInterceptorContext arg0) throws org.apache.hadoop.hbase.exceptions.PreemptiveFastFailException
org.apache.hadoop.hbase.exceptions.PreemptiveFastFailException
public void handleFailure(org.apache.hadoop.hbase.client.FastFailInterceptorContext arg0, Throwable arg1) throws IOException
IOException
public void updateFailureInfo(org.apache.hadoop.hbase.client.FastFailInterceptorContext arg0)
protected void handleFailureToServer(org.apache.hadoop.hbase.ServerName arg0, Throwable arg1)
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
IOException
protected void occasionallyCleanupFailureInformation()
public void intercept(org.apache.hadoop.hbase.client.RetryingCallerInterceptorContext arg0) throws org.apache.hadoop.hbase.exceptions.PreemptiveFastFailException
org.apache.hadoop.hbase.exceptions.PreemptiveFastFailException
public void handleFailure(org.apache.hadoop.hbase.client.RetryingCallerInterceptorContext arg0, Throwable arg1) throws IOException
IOException
public void updateFailureInfo(org.apache.hadoop.hbase.client.RetryingCallerInterceptorContext arg0)
public org.apache.hadoop.hbase.client.RetryingCallerInterceptorContext createEmptyContext()
protected boolean isServerInFailureMap(org.apache.hadoop.hbase.ServerName arg0)
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.