public class TestFromClientSideScanExcpetion extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TestFromClientSideScanExcpetion.MyHRegion |
static class |
TestFromClientSideScanExcpetion.MyHStore |
static class |
TestFromClientSideScanExcpetion.MyStoreScanner |
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static byte[] |
FAMILY |
private static AtomicBoolean |
IS_DO_NOT_RETRY |
org.junit.rules.TestName |
name |
private static AtomicBoolean |
ON |
private static AtomicLong |
REQ_COUNT |
private static int |
SLAVES |
protected static HBaseTestingUtility |
TEST_UTIL |
private static AtomicBoolean |
THROW_ONCE |
Constructor and Description |
---|
TestFromClientSideScanExcpetion() |
Modifier and Type | Method and Description |
---|---|
private static void |
inject() |
private static void |
reset() |
static void |
setUpBeforeClass() |
static void |
tearDownAfterClass() |
void |
testClientScannerIsResetWhenScanThrowsIOException()
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 |
testScannerFailsAfterRetriesWhenCoprocessorThrowsIOE()
Tests the case where a coprocessor throws a regular IOException in the scan.
|
void |
testScannerThrowsExceptionWhenCoprocessorThrowsDNRIOE()
Tests the case where a coprocessor throws a DoNotRetryIOException in the scan.
|
public static final HBaseClassTestRule CLASS_RULE
protected static final HBaseTestingUtility TEST_UTIL
private static byte[] FAMILY
private static int SLAVES
public org.junit.rules.TestName name
private static AtomicBoolean ON
private static AtomicLong REQ_COUNT
private static AtomicBoolean IS_DO_NOT_RETRY
private static AtomicBoolean THROW_ONCE
public TestFromClientSideScanExcpetion()
public static void setUpBeforeClass() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
private static void reset()
private static void inject()
public void testClientScannerIsResetWhenScanThrowsIOException() throws IOException, InterruptedException
IOException
InterruptedException
public void testScannerThrowsExceptionWhenCoprocessorThrowsDNRIOE() throws IOException, InterruptedException
IOException
InterruptedException
public void testScannerFailsAfterRetriesWhenCoprocessorThrowsIOE() throws IOException, InterruptedException
IOException
InterruptedException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.