Package org.apache.hadoop.hbase.client
Class TestAsyncNonMetaRegionLocator
java.lang.Object
org.apache.hadoop.hbase.client.TestAsyncNonMetaRegionLocator
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate org.apache.hadoop.hbase.client.AsyncConnectionImplprivate static byte[]private org.apache.hadoop.hbase.client.AsyncNonMetaRegionLocatororg.apache.hadoop.hbase.CatalogReplicaModeprivate static final intprivate static final intprivate static byte[][]private static final org.apache.hadoop.hbase.TableNameprivate static final HBaseTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidassertLocEquals(byte[] startKey, byte[] endKey, org.apache.hadoop.hbase.ServerName serverName, org.apache.hadoop.hbase.HRegionLocation loc) private voidcheckRegions(org.apache.hadoop.hbase.client.AsyncConnectionImpl conn, List<org.apache.hadoop.hbase.client.RegionInfo> regions, org.apache.hadoop.hbase.client.RegionInfo chosen) private voidcheckRegionsWithRetries(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 voidprivate voidprivate 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 voidsetUp()voidstatic voidtearDown()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoid
-
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:
IOExceptionInterruptedException
-
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:
IOExceptionInterruptedException
-
assertLocEquals
private void assertLocEquals(byte[] startKey, byte[] endKey, org.apache.hadoop.hbase.ServerName serverName, org.apache.hadoop.hbase.HRegionLocation loc) -
testSingleRegionTable
-
createMultiRegionTable
- Throws:
IOExceptionInterruptedException
-
getStartKeys
-
getEndKeys
-
getLocations
-
testMultiRegionTable
- Throws:
IOExceptionInterruptedException
-
testRegionMove
-
testLocateAfter
-
testConcurrentLocate
-
testReload
- Throws:
Exception
-
testLocateBeforeLastRegion
public void testLocateBeforeLastRegion() throws IOException, InterruptedException, ExecutionException -
testRegionReplicas
- Throws:
Exception
-
testLocateBeforeInOnlyRegion
- Throws:
IOExceptionInterruptedException
-
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)
-