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
Fields -
Constructor Summary
Constructors -
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) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidprivate 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, params, setUp, setUpBeforeClass, tearDown, tearDownAfterClassMethods 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
-