public static class TestFastFail.CallQueueTooBigPffeInterceptor extends Object
Modifier and Type | Field and Description |
---|---|
protected long |
failureMapCleanupIntervalMilliSec |
protected long |
fastFailThresholdMilliSec |
protected long |
lastFailureMapCleanupTimeMilliSec |
static AtomicInteger |
numCallQueueTooBig |
protected ConcurrentMap<org.apache.hadoop.hbase.ServerName,org.apache.hadoop.hbase.client.FailureInfo> |
repeatedFailuresMap |
Constructor and Description |
---|
CallQueueTooBigPffeInterceptor(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 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 |
occasionallyCleanupFailureInformation() |
protected boolean |
shouldRetryInspiteOfFastFail(org.apache.hadoop.hbase.client.FailureInfo arg0) |
String |
toString() |
void |
updateFailureInfo(org.apache.hadoop.hbase.client.FastFailInterceptorContext arg0) |
void |
updateFailureInfo(org.apache.hadoop.hbase.client.RetryingCallerInterceptorContext arg0) |
public static AtomicInteger numCallQueueTooBig
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 CallQueueTooBigPffeInterceptor(org.apache.hadoop.conf.Configuration conf)
protected void handleFailureToServer(org.apache.hadoop.hbase.ServerName serverName, Throwable t)
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)
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()
protected boolean shouldRetryInspiteOfFastFail(org.apache.hadoop.hbase.client.FailureInfo arg0)
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–2020 The Apache Software Foundation. All rights reserved.