public static class TestMetaCache.RoundRobinExceptionInjector extends TestMetaCache.ExceptionInjector
Modifier and Type | Field and Description |
---|---|
private int |
expCount |
private List<Throwable> |
metaCachePreservingExceptions |
private int |
numReqs |
Constructor and Description |
---|
RoundRobinExceptionInjector() |
Modifier and Type | Method and Description |
---|---|
void |
throwOnGet(TestMetaCache.FakeRSRpcServices rpcServices,
org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.GetRequest request) |
void |
throwOnMutate(TestMetaCache.FakeRSRpcServices rpcServices,
org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.MutateRequest request) |
void |
throwOnScan(TestMetaCache.FakeRSRpcServices rpcServices,
org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ScanRequest request) |
private void |
throwSomeExceptions(TestMetaCache.FakeRSRpcServices rpcServices,
org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.RegionSpecifier regionSpec)
Throw some exceptions.
|
isTestTable
private int numReqs
private int expCount
private List<Throwable> metaCachePreservingExceptions
public RoundRobinExceptionInjector()
public void throwOnGet(TestMetaCache.FakeRSRpcServices rpcServices, org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.GetRequest request) throws org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
throwOnGet
in class TestMetaCache.ExceptionInjector
org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
public void throwOnMutate(TestMetaCache.FakeRSRpcServices rpcServices, org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.MutateRequest request) throws org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
throwOnMutate
in class TestMetaCache.ExceptionInjector
org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
public void throwOnScan(TestMetaCache.FakeRSRpcServices rpcServices, org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ScanRequest request) throws org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
throwOnScan
in class TestMetaCache.ExceptionInjector
org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
private void throwSomeExceptions(TestMetaCache.FakeRSRpcServices rpcServices, org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.RegionSpecifier regionSpec) throws org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.