Package org.apache.hadoop.hbase.client
Class TestAsyncNonMetaRegionLocator
java.lang.Object
org.apache.hadoop.hbase.client.TestAsyncNonMetaRegionLocator
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private org.apache.hadoop.hbase.client.AsyncConnectionImpl
private static byte[]
private org.apache.hadoop.hbase.client.AsyncNonMetaRegionLocator
org.apache.hadoop.hbase.CatalogReplicaMode
private static final int
private static final int
private static byte[][]
private static final org.apache.hadoop.hbase.TableName
private static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
assertLocEquals
(byte[] startKey, byte[] endKey, org.apache.hadoop.hbase.ServerName serverName, org.apache.hadoop.hbase.HRegionLocation loc) private void
checkRegions
(org.apache.hadoop.hbase.client.AsyncConnectionImpl conn, List<org.apache.hadoop.hbase.client.RegionInfo> regions, org.apache.hadoop.hbase.client.RegionInfo chosen) private void
checkRegionsWithRetries
(org.apache.hadoop.hbase.client.AsyncConnectionImpl conn, List<org.apache.hadoop.hbase.client.RegionInfo> regions, org.apache.hadoop.hbase.client.RegionInfo chosen, int retries) private void
private void
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[][]
private org.apache.hadoop.hbase.ServerName[]
getLocations
(byte[][] startKeys) private static byte[][]
static Collection<Object[]>
static void
setUp()
void
static void
tearDown()
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
-
Field Details
-
CLASS_RULE
-
TEST_UTIL
-
TABLE_NAME
-
FAMILY
-
NB_SERVERS
- See Also:
-
NUM_OF_META_REPLICA
- See Also:
-
SPLIT_KEYS
-
conn
-
locator
-
metaReplicaMode
-
-
Constructor Details
-
TestAsyncNonMetaRegionLocator
public TestAsyncNonMetaRegionLocator()
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
setUpBeforeTest
-
tearDownAfterTest
- Throws:
IOException
-
paramAbstractTestRegionLocatoreters
-
createSingleRegionTable
- Throws:
IOException
InterruptedException
-
getDefaultRegionLocation
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) -
testNoTable
- Throws:
InterruptedException
-
testDisableTable
- Throws:
IOException
InterruptedException
-
assertLocEquals
private void assertLocEquals(byte[] startKey, byte[] endKey, org.apache.hadoop.hbase.ServerName serverName, org.apache.hadoop.hbase.HRegionLocation loc) -
testSingleRegionTable
-
createMultiRegionTable
- Throws:
IOException
InterruptedException
-
getStartKeys
-
getEndKeys
-
getLocations
-
testMultiRegionTable
- Throws:
IOException
InterruptedException
-
testRegionMove
-
testLocateAfter
-
testConcurrentLocate
-
testReload
- Throws:
Exception
-
testLocateBeforeLastRegion
public void testLocateBeforeLastRegion() throws IOException, InterruptedException, ExecutionException -
testRegionReplicas
- Throws:
Exception
-
testLocateBeforeInOnlyRegion
- Throws:
IOException
InterruptedException
-
testConcurrentUpdateCachedLocationOnError
- Throws:
Exception
-
testCacheLocationWhenGetAllLocations
- Throws:
Exception
-
testDoNotCacheLocationWithNullServerNameWhenGetAllLocations
- Throws:
Exception
-
checkRegionsWithRetries
private void checkRegionsWithRetries(org.apache.hadoop.hbase.client.AsyncConnectionImpl conn, List<org.apache.hadoop.hbase.client.RegionInfo> regions, org.apache.hadoop.hbase.client.RegionInfo chosen, int retries) throws InterruptedException - Throws:
InterruptedException
-
checkRegions
private void checkRegions(org.apache.hadoop.hbase.client.AsyncConnectionImpl conn, List<org.apache.hadoop.hbase.client.RegionInfo> regions, org.apache.hadoop.hbase.client.RegionInfo chosen)
-