Package org.apache.hadoop.hbase.client
Class TestAsyncRegionAdminApi
java.lang.Object
org.apache.hadoop.hbase.client.AbstractTestUpdateConfiguration
org.apache.hadoop.hbase.client.TestAsyncAdminBase
org.apache.hadoop.hbase.client.TestAsyncRegionAdminApi
@Tag("org.apache.hadoop.hbase.testclassification.LargeTests") @Tag("org.apache.hadoop.hbase.testclassification.ClientTests")
public class TestAsyncRegionAdminApi
extends TestAsyncAdminBase
Class to test asynchronous region admin operations.
-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.client.TestAsyncAdminBase
admin, ASYNC_CONN, FAMILY, FAMILY_0, FAMILY_1, getAdmin, LOG, tableName, TEST_UTIL -
Constructor Summary
ConstructorsConstructorDescriptionTestAsyncRegionAdminApi(Supplier<org.apache.hadoop.hbase.client.AsyncAdmin> admin) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcompactionTest(org.apache.hadoop.hbase.TableName tableName, int flushes, org.apache.hadoop.hbase.client.CompactionState expectedState, boolean singleFamily) private static intcountStoreFilesInFamilies(List<org.apache.hadoop.hbase.regionserver.Region> regions, byte[][] families) private static intcountStoreFilesInFamily(List<org.apache.hadoop.hbase.regionserver.Region> regions, byte[] family) (package private) org.apache.hadoop.hbase.client.RegionInfocreateTableAndGetOneRegion(org.apache.hadoop.hbase.TableName tableName) (package private) static voidloadData(org.apache.hadoop.hbase.TableName tableName, byte[][] families, int rows) (package private) static voidloadData(org.apache.hadoop.hbase.TableName tableName, byte[][] families, int rows, int flushes) static voidstatic voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidprivate voidtestNonExistentTableCompaction(org.apache.hadoop.hbase.client.CompactionState compactionState) private voidwaitUntilMobCompactionFinished(org.apache.hadoop.hbase.TableName tableName) Methods inherited from class org.apache.hadoop.hbase.client.TestAsyncAdminBase
createTableWithDefaultConf, createTableWithDefaultConf, createTableWithDefaultConf, createTableWithDefaultConf, createTableWithDefaultConf, createTableWithDefaultConf, parameters, setUp, tearDownMethods inherited from class org.apache.hadoop.hbase.client.AbstractTestUpdateConfiguration
addResourceToRegionServerConfiguration, replaceHBaseSiteXML, restoreHBaseSiteXML, setUpConfigurationFiles
-
Constructor Details
-
TestAsyncRegionAdminApi
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
testAssignRegionAndUnassignRegion
- Throws:
Exception
-
createTableAndGetOneRegion
org.apache.hadoop.hbase.client.RegionInfo createTableAndGetOneRegion(org.apache.hadoop.hbase.TableName tableName) throws IOException, InterruptedException, ExecutionException -
testGetRegionByStateOfTable
- Throws:
Exception
-
testMoveRegion
- Throws:
Exception
-
testGetOnlineRegions
- Throws:
Exception
-
testFlushTableAndRegion
- Throws:
Exception
-
waitUntilMobCompactionFinished
private void waitUntilMobCompactionFinished(org.apache.hadoop.hbase.TableName tableName) throws ExecutionException, InterruptedException -
testCompactMob
- Throws:
Exception
-
testCompactRegionServer
- Throws:
Exception
-
testCompactionSwitchStates
- Throws:
Exception
-
testCompact
- Throws:
Exception
-
compactionTest
private void compactionTest(org.apache.hadoop.hbase.TableName tableName, int flushes, org.apache.hadoop.hbase.client.CompactionState expectedState, boolean singleFamily) throws Exception - Throws:
Exception
-
testNonExistentTableCompaction
-
testNonExistentTableCompaction
private void testNonExistentTableCompaction(org.apache.hadoop.hbase.client.CompactionState compactionState) -
countStoreFilesInFamily
private static int countStoreFilesInFamily(List<org.apache.hadoop.hbase.regionserver.Region> regions, byte[] family) -
countStoreFilesInFamilies
private static int countStoreFilesInFamilies(List<org.apache.hadoop.hbase.regionserver.Region> regions, byte[][] families) -
loadData
static void loadData(org.apache.hadoop.hbase.TableName tableName, byte[][] families, int rows) throws IOException - Throws:
IOException
-
loadData
static void loadData(org.apache.hadoop.hbase.TableName tableName, byte[][] families, int rows, int flushes) throws IOException - Throws:
IOException
-