Package org.apache.hadoop.hbase.client
Class TestFromClientSideScanExcpetion
java.lang.Object
org.apache.hadoop.hbase.client.TestFromClientSideScanExcpetion
- Direct Known Subclasses:
TestFromClientSideScanExcpetionWithCoprocessor
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static final class
static final class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static byte[]
private static AtomicBoolean
org.junit.rules.TestName
private static AtomicBoolean
private static AtomicLong
private static int
protected static final HBaseTestingUtility
private static AtomicBoolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
inject()
private static void
reset()
static void
static void
void
Tests 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.void
Tests the case where a coprocessor throws a regular IOException in the scan.void
Tests 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:
IOException
InterruptedException
-
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:
IOException
InterruptedException
-
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:
IOException
InterruptedException
-