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<ServerName,org.apache.hadoop.hbase.client.FailureInfo> |
repeatedFailuresMap |
| Constructor and Description |
|---|
CallQueueTooBigPffeInterceptor(org.apache.hadoop.conf.Configuration conf) |
public static AtomicInteger numCallQueueTooBig
protected final long fastFailThresholdMilliSec
protected final ConcurrentMap<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(ServerName serverName, Throwable t)
public void intercept(org.apache.hadoop.hbase.client.FastFailInterceptorContext arg0) throws PreemptiveFastFailException
PreemptiveFastFailExceptionpublic void handleFailure(org.apache.hadoop.hbase.client.FastFailInterceptorContext arg0, Throwable arg1) throws IOException
IOExceptionpublic void updateFailureInfo(org.apache.hadoop.hbase.client.FastFailInterceptorContext arg0)
public void handleThrowable(Throwable arg0, ServerName arg1, org.apache.commons.lang3.mutable.MutableBoolean arg2, org.apache.commons.lang3.mutable.MutableBoolean arg3) throws IOException
IOExceptionprotected void occasionallyCleanupFailureInformation()
protected boolean shouldRetryInspiteOfFastFail(org.apache.hadoop.hbase.client.FailureInfo arg0)
public void intercept(org.apache.hadoop.hbase.client.RetryingCallerInterceptorContext arg0) throws PreemptiveFastFailException
PreemptiveFastFailExceptionpublic void handleFailure(org.apache.hadoop.hbase.client.RetryingCallerInterceptorContext arg0, Throwable arg1) throws IOException
IOExceptionpublic void updateFailureInfo(org.apache.hadoop.hbase.client.RetryingCallerInterceptorContext arg0)
public org.apache.hadoop.hbase.client.RetryingCallerInterceptorContext createEmptyContext()
protected boolean isServerInFailureMap(ServerName arg0)
Copyright © 2007–2019 Cloudera. All rights reserved.