public class TestFastFailWithoutTestUtil extends Object
Modifier and Type | Field and Description |
---|---|
ThreadLocal<AtomicBoolean> |
isPriviThreadLocal
The variable which is used as an identifier within the 2 threads.
|
Constructor and Description |
---|
TestFastFailWithoutTestUtil() |
Modifier and Type | Method and Description |
---|---|
protected static org.apache.hadoop.hbase.client.PreemptiveFastFailInterceptor |
createPreemptiveInterceptor(Configuration conf) |
org.apache.hadoop.hbase.client.PreemptiveFastFailInterceptor |
getInterceptor() |
RpcRetryingCaller<Void> |
getRpcRetryingCaller(int pauseTime,
int retries,
org.apache.hadoop.hbase.client.RetryingCallerInterceptor interceptor) |
protected static ServerName |
getSomeServerName() |
void |
testExceptionsIdentifiedByInterceptor() |
void |
testInterceptorContextClear() |
void |
testInterceptorContextPrepare() |
void |
testInterceptorFactoryMethods() |
void |
testInterceptorIntercept() |
void |
testInterceptorIntercept50Times() |
void |
testPreemptiveFastFailException50Times() |
public final ThreadLocal<AtomicBoolean> isPriviThreadLocal
public void testInterceptorFactoryMethods()
public void testInterceptorContextClear()
public void testInterceptorContextPrepare() throws IOException
IOException
public void testInterceptorIntercept50Times() throws IOException, InterruptedException
IOException
InterruptedException
public void testInterceptorIntercept() throws IOException, InterruptedException
IOException
InterruptedException
public void testExceptionsIdentifiedByInterceptor() throws IOException
IOException
protected static org.apache.hadoop.hbase.client.PreemptiveFastFailInterceptor createPreemptiveInterceptor(Configuration conf)
public void testPreemptiveFastFailException50Times() throws InterruptedException, ExecutionException
public org.apache.hadoop.hbase.client.PreemptiveFastFailInterceptor getInterceptor()
public RpcRetryingCaller<Void> getRpcRetryingCaller(int pauseTime, int retries, org.apache.hadoop.hbase.client.RetryingCallerInterceptor interceptor)
protected static ServerName getSomeServerName()