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<ServerName,org.apache.hadoop.hbase.client.FailureInfo> |
repeatedFailuresMap |
| Constructor and Description |
|---|
MyPreemptiveFastFailInterceptor(org.apache.hadoop.conf.Configuration conf) |
public static AtomicInteger numBraveSouls
protected final long fastFailThresholdMilliSec
protected final ConcurrentMap<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 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)
protected void handleFailureToServer(ServerName arg0, Throwable arg1)
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()
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.