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
Class to test asynchronous region admin operations.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
compactionTest
(org.apache.hadoop.hbase.TableName tableName, int flushes, org.apache.hadoop.hbase.client.CompactionState expectedState, boolean singleFamily) private static int
countStoreFilesInFamilies
(List<org.apache.hadoop.hbase.regionserver.Region> regions, byte[][] families) private static int
countStoreFilesInFamily
(List<org.apache.hadoop.hbase.regionserver.Region> regions, byte[] family) (package private) org.apache.hadoop.hbase.client.RegionInfo
createTableAndGetOneRegion
(org.apache.hadoop.hbase.TableName tableName) (package private) static void
loadData
(org.apache.hadoop.hbase.TableName tableName, byte[][] families, int rows) (package private) static void
loadData
(org.apache.hadoop.hbase.TableName tableName, byte[][] families, int rows, int flushes) void
void
void
void
void
void
void
void
void
void
private void
testNonExistentTableCompaction
(org.apache.hadoop.hbase.client.CompactionState compactionState) private void
waitUntilMobCompactionFinished
(org.apache.hadoop.hbase.TableName tableName) Methods inherited from class org.apache.hadoop.hbase.client.TestAsyncAdminBase
createTableWithDefaultConf, createTableWithDefaultConf, createTableWithDefaultConf, createTableWithDefaultConf, createTableWithDefaultConf, createTableWithDefaultConf, params, setUp, setUpBeforeClass, tearDown, tearDownAfterClass
Methods inherited from class org.apache.hadoop.hbase.client.AbstractTestUpdateConfiguration
addResourceToRegionServerConfiguration, replaceHBaseSiteXML, restoreHBaseSiteXML, setUpConfigurationFiles
-
Field Details
-
CLASS_RULE
-
-
Constructor Details
-
TestAsyncRegionAdminApi
public TestAsyncRegionAdminApi()
-
-
Method Details
-
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
-