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 org.slf4j.Logger |
LOG |
private static int |
META_STOREFILE_REFRESH_PERIOD |
private org.apache.hadoop.hbase.client.CatalogReplicaMode |
metaReplicaMode |
private static int |
NB_SERVERS |
private static int |
numOfMetaReplica |
private static org.apache.hadoop.hbase.client.ConnectionRegistry |
registry |
private static byte[][] |
SPLIT_KEYS |
private static org.apache.hadoop.hbase.TableName |
TABLE_NAME |
private static HBaseTestingUtility |
TEST_UTIL |
| Constructor and Description |
|---|
TestAsyncNonMetaRegionLocator(String clientMetaReplicaMode) |
| 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 Collection<Object[]> |
parameters() |
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 org.slf4j.Logger LOG
private static final HBaseTestingUtility TEST_UTIL
private static org.apache.hadoop.hbase.TableName TABLE_NAME
private static byte[] FAMILY
private static final int META_STOREFILE_REFRESH_PERIOD
private static final int NB_SERVERS
private static int numOfMetaReplica
private static org.apache.hadoop.hbase.client.AsyncConnectionImpl CONN
private static org.apache.hadoop.hbase.client.AsyncNonMetaRegionLocator LOCATOR
private static org.apache.hadoop.hbase.client.ConnectionRegistry registry
private static byte[][] SPLIT_KEYS
private org.apache.hadoop.hbase.client.CatalogReplicaMode metaReplicaMode
public TestAsyncNonMetaRegionLocator(String clientMetaReplicaMode) throws Exception
Exceptionpublic void tearDownAfterTest() throws IOException
IOExceptionpublic static Collection<Object[]> parameters()
private 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–2021 The Apache Software Foundation. All rights reserved.