Package org.apache.hadoop.hbase.client
Class TestMetaCache.ExceptionInjector
java.lang.Object
org.apache.hadoop.hbase.client.TestMetaCache.ExceptionInjector
- Direct Known Subclasses:
TestMetaCache.CallQueueTooBigExceptionInjector
,TestMetaCache.RoundRobinExceptionInjector
- Enclosing class:
- TestMetaCache
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
isTestTable
(TestMetaCache.FakeRSRpcServices rpcServices, org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.RegionSpecifier regionSpec) abstract void
throwOnGet
(TestMetaCache.FakeRSRpcServices rpcServices, org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.GetRequest request) abstract void
throwOnMutate
(TestMetaCache.FakeRSRpcServices rpcServices, org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.MutateRequest request) abstract void
throwOnScan
(TestMetaCache.FakeRSRpcServices rpcServices, org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ScanRequest request)
-
Constructor Details
-
ExceptionInjector
public ExceptionInjector()
-
-
Method Details
-
isTestTable
protected boolean isTestTable(TestMetaCache.FakeRSRpcServices rpcServices, org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.RegionSpecifier regionSpec) throws org.apache.hbase.thirdparty.com.google.protobuf.ServiceException - Throws:
org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
-
throwOnGet
public abstract void throwOnGet(TestMetaCache.FakeRSRpcServices rpcServices, org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.GetRequest request) throws org.apache.hbase.thirdparty.com.google.protobuf.ServiceException - Throws:
org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
-
throwOnMutate
public abstract void throwOnMutate(TestMetaCache.FakeRSRpcServices rpcServices, org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.MutateRequest request) throws org.apache.hbase.thirdparty.com.google.protobuf.ServiceException - Throws:
org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
-
throwOnScan
public abstract void throwOnScan(TestMetaCache.FakeRSRpcServices rpcServices, org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ScanRequest request) throws org.apache.hbase.thirdparty.com.google.protobuf.ServiceException - Throws:
org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
-