Package org.apache.hadoop.hbase.client
Class TestFromClientSideScanExcpetion
java.lang.Object
org.apache.hadoop.hbase.client.TestFromClientSideScanExcpetion
- Direct Known Subclasses:
TestFromClientSideScanExcpetionWithCoprocessor
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classstatic final class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static byte[]private static AtomicBooleanorg.junit.rules.TestNameprivate static AtomicBooleanprivate static AtomicLongprivate static intprotected static final HBaseTestingUtilprivate static AtomicBoolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidinject()private static voidreset()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
-
CLASS_RULE
-
TEST_UTIL
-
FAMILY
-
SLAVES
-
name
-
ON
-
REQ_COUNT
-
IS_DO_NOT_RETRY
-
THROW_ONCE
-
-
Constructor Details
-
TestFromClientSideScanExcpetion
public TestFromClientSideScanExcpetion()
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
reset
-
inject
-
testClientScannerIsResetWhenScanThrowsIOException
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
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
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
-