public class TestAsyncNonMetaRegionLocator extends Object
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.hbase.client.AsyncConnectionImpl |
CONN |
private static byte[] |
FAMILY |
private static org.apache.hadoop.hbase.client.AsyncNonMetaRegionLocator |
LOCATOR |
private static byte[][] |
SPLIT_KEYS |
private static org.apache.hadoop.hbase.TableName |
TABLE_NAME |
private static HBaseTestingUtility |
TEST_UTIL |
| Constructor and Description |
|---|
TestAsyncNonMetaRegionLocator() |
| Modifier and Type | Method and Description |
|---|---|
private void |
assertLocEquals(byte[] startKey,
byte[] endKey,
org.apache.hadoop.hbase.ServerName serverName,
org.apache.hadoop.hbase.HRegionLocation loc) |
private void |
createMultiRegionTable() |
private void |
createSingleRegionTable() |
private CompletableFuture<org.apache.hadoop.hbase.HRegionLocation> |
getDefaultRegionLocation(org.apache.hadoop.hbase.TableName tableName,
byte[] row,
org.apache.hadoop.hbase.client.RegionLocateType locateType,
boolean reload) |
private static byte[][] |
getEndKeys() |
private org.apache.hadoop.hbase.ServerName[] |
getLocations(byte[][] startKeys) |
private static byte[][] |
getStartKeys() |
static void |
setUp() |
static void |
tearDown() |
void |
tearDownAfterTest() |
void |
testConcurrentLocate() |
void |
testConcurrentUpdateCachedLocationOnError() |
void |
testDisableTable() |
void |
testLocateAfter() |
void |
testLocateBeforeInOnlyRegion() |
void |
testLocateBeforeLastRegion() |
void |
testMultiRegionTable() |
void |
testNoTable() |
void |
testRegionMove() |
void |
testRegionReplicas() |
void |
testReload() |
void |
testSingleRegionTable() |
public static final HBaseClassTestRule CLASS_RULE
private static final HBaseTestingUtility TEST_UTIL
private static org.apache.hadoop.hbase.TableName TABLE_NAME
private static byte[] FAMILY
private static org.apache.hadoop.hbase.client.AsyncConnectionImpl CONN
private static org.apache.hadoop.hbase.client.AsyncNonMetaRegionLocator LOCATOR
private static byte[][] SPLIT_KEYS
public TestAsyncNonMetaRegionLocator()
public void tearDownAfterTest() throws IOException
IOExceptionprivate void createSingleRegionTable() throws IOException, InterruptedException
IOExceptionInterruptedExceptionprivate CompletableFuture<org.apache.hadoop.hbase.HRegionLocation> getDefaultRegionLocation(org.apache.hadoop.hbase.TableName tableName, byte[] row, org.apache.hadoop.hbase.client.RegionLocateType locateType, boolean reload)
public void testNoTable() throws InterruptedException
InterruptedExceptionpublic void testDisableTable() throws IOException, InterruptedException
IOExceptionInterruptedExceptionprivate void assertLocEquals(byte[] startKey, byte[] endKey, org.apache.hadoop.hbase.ServerName serverName, org.apache.hadoop.hbase.HRegionLocation loc)
public void testSingleRegionTable() throws IOException, InterruptedException, ExecutionException
private void createMultiRegionTable() throws IOException, InterruptedException
IOExceptionInterruptedExceptionprivate static byte[][] getStartKeys()
private static byte[][] getEndKeys()
private org.apache.hadoop.hbase.ServerName[] getLocations(byte[][] startKeys)
public void testMultiRegionTable() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void testRegionMove() throws IOException, InterruptedException, ExecutionException
public void testLocateAfter() throws IOException, InterruptedException, ExecutionException
public void testConcurrentLocate() throws IOException, InterruptedException, ExecutionException
public void testReload() throws Exception
Exceptionpublic void testLocateBeforeLastRegion() throws IOException, InterruptedException, ExecutionException
public void testRegionReplicas() throws Exception
Exceptionpublic void testLocateBeforeInOnlyRegion() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void testConcurrentUpdateCachedLocationOnError() throws Exception
ExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.