Package org.apache.hadoop.hbase.client
Class FromClientSideScanExcpetionTestBase
java.lang.Object
org.apache.hadoop.hbase.client.FromClientSideScanExcpetionTestBase
- Direct Known Subclasses:
TestFromClientSideScanExcpetion,TestFromClientSideScanExcpetionWithCoprocessor
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classstatic final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static byte[]private static AtomicBooleanprivate TableNameTestExtensionprivate static AtomicBooleanprivate static AtomicLongprotected static intprotected static final HBaseTestingUtilprivate static AtomicBoolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidinject()private static voidreset()protected static voidstatic voidvoidTests the case where a Scan can throw an IOException in the middle of the seek / reseek leaving the server side RegionScanner to be in dirty state.voidTests the case where a coprocessor throws a regular IOException in the scan.voidTests the case where a coprocessor throws a DoNotRetryIOException in the scan.
-
Field Details
-
TEST_UTIL
-
FAMILY
-
SLAVES
-
name
-
ON
-
REQ_COUNT
-
IS_DO_NOT_RETRY
-
THROW_ONCE
-
-
Constructor Details
-
FromClientSideScanExcpetionTestBase
public FromClientSideScanExcpetionTestBase()
-
-
Method Details
-
tearDownAfterClass
- Throws:
Exception
-
reset
-
inject
-
startCluster
- Throws:
Exception
-
testClientScannerIsResetWhenScanThrowsIOException
@Test public void testClientScannerIsResetWhenScanThrowsIOException() throws IOException, InterruptedExceptionTests the case where a Scan can throw an IOException in the middle of the seek / reseek leaving the server side RegionScanner to be in dirty state. The client has to ensure that the ClientScanner does not get an exception and also sees all the data.- Throws:
IOExceptionInterruptedException
-
testScannerThrowsExceptionWhenCoprocessorThrowsDNRIOE
@Test public void testScannerThrowsExceptionWhenCoprocessorThrowsDNRIOE() throws IOException, InterruptedExceptionTests the case where a coprocessor throws a DoNotRetryIOException in the scan. The expectation is that the exception will bubble up to the client scanner instead of being retried.- Throws:
IOExceptionInterruptedException
-
testScannerFailsAfterRetriesWhenCoprocessorThrowsIOE
@Test public void testScannerFailsAfterRetriesWhenCoprocessorThrowsIOE() throws IOException, InterruptedExceptionTests the case where a coprocessor throws a regular IOException in the scan. The expectation is that the we will keep on retrying, but fail after the retries are exhausted instead of retrying indefinitely.- Throws:
IOExceptionInterruptedException
-