public class TestAsyncProcessWithRegionException extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
TestAsyncProcessWithRegionException.MyAsyncProcess |
Modifier and Type | Field and Description |
---|---|
private static byte[] |
BAD_ROW |
private static byte[] |
BAD_ROW_WITHOUT_ACTION_EXCEPTION |
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.conf.Configuration |
CONF |
private static org.apache.hadoop.hbase.TableName |
DUMMY_TABLE |
private static org.apache.hadoop.hbase.client.Result |
EMPTY_RESULT |
private static byte[] |
FAMILY |
private static byte[] |
GOOD_ROW |
private static IOException |
IOE |
private static org.apache.hadoop.hbase.client.RegionInfo |
REGION_INFO |
private static org.apache.hadoop.hbase.HRegionLocation |
REGION_LOCATION |
private static org.apache.hadoop.hbase.ServerName |
SERVER_NAME |
Constructor and Description |
---|
TestAsyncProcessWithRegionException() |
Modifier and Type | Method and Description |
---|---|
private static void |
assertActionsInProgress(org.apache.hadoop.hbase.client.AsyncRequestFuture arf) |
private static void |
assertError(org.apache.hadoop.hbase.client.AsyncRequestFuture arf,
int expectedCountOfFailure) |
private static org.apache.hadoop.hbase.client.ClusterConnection |
createHConnection() |
private static void |
setMockLocation(org.apache.hadoop.hbase.client.ClusterConnection hc,
byte[] row,
org.apache.hadoop.hbase.RegionLocations result) |
static void |
setUpBeforeClass() |
void |
testFailedPut() |
void |
testFailedPutWithoutActionException() |
void |
testSuccessivePut() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.apache.hadoop.hbase.client.Result EMPTY_RESULT
private static final IOException IOE
private static final org.apache.hadoop.conf.Configuration CONF
private static final org.apache.hadoop.hbase.TableName DUMMY_TABLE
private static final byte[] GOOD_ROW
private static final byte[] BAD_ROW
private static final byte[] BAD_ROW_WITHOUT_ACTION_EXCEPTION
private static final byte[] FAMILY
private static final org.apache.hadoop.hbase.ServerName SERVER_NAME
private static final org.apache.hadoop.hbase.client.RegionInfo REGION_INFO
private static final org.apache.hadoop.hbase.HRegionLocation REGION_LOCATION
public TestAsyncProcessWithRegionException()
public static void setUpBeforeClass()
public void testSuccessivePut() throws Exception
Exception
public void testFailedPut() throws Exception
Exception
public void testFailedPutWithoutActionException() throws Exception
Exception
private static void assertError(org.apache.hadoop.hbase.client.AsyncRequestFuture arf, int expectedCountOfFailure)
private static void assertActionsInProgress(org.apache.hadoop.hbase.client.AsyncRequestFuture arf)
private static org.apache.hadoop.hbase.client.ClusterConnection createHConnection() throws IOException
IOException
private static void setMockLocation(org.apache.hadoop.hbase.client.ClusterConnection hc, byte[] row, org.apache.hadoop.hbase.RegionLocations result) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.