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 |
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
IOException
private void createSingleRegionTable() throws IOException, InterruptedException
IOException
InterruptedException
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)
public void testNoTable() throws InterruptedException
InterruptedException
public void testDisableTable() throws IOException, InterruptedException
IOException
InterruptedException
private 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
IOException
InterruptedException
private static byte[][] getStartKeys()
private static byte[][] getEndKeys()
private org.apache.hadoop.hbase.ServerName[] getLocations(byte[][] startKeys)
public void testMultiRegionTable() throws IOException, InterruptedException
IOException
InterruptedException
public 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
Exception
public void testLocateBeforeLastRegion() throws IOException, InterruptedException, ExecutionException
public void testRegionReplicas() throws Exception
Exception
public void testLocateBeforeInOnlyRegion() throws IOException, InterruptedException
IOException
InterruptedException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.