Class TestMergeTableRegionsProcedure
java.lang.Object
org.apache.hadoop.hbase.master.assignment.TestMergeTableRegionsProcedure
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static org.apache.hadoop.hbase.client.Adminprivate longprivate org.apache.hadoop.hbase.procedure2.ProcedureMetricsprivate longstatic final HBaseClassTestRuleprivate static final byte[]private static final intprivate static final org.slf4j.Loggerprivate longprivate org.apache.hadoop.hbase.procedure2.ProcedureMetricsprivate longfinal org.junit.rules.TestNameprivate longprivate org.apache.hadoop.hbase.procedure2.ProcedureMetricsprivate longprivate static final HBaseTestingUtility -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<org.apache.hadoop.hbase.client.RegionInfo>assertRegionCount(org.apache.hadoop.hbase.TableName tableName, int nregions) static voidprivate voidprivate List<org.apache.hadoop.hbase.client.RegionInfo>createTable(org.apache.hadoop.hbase.TableName tableName) private org.apache.hadoop.hbase.procedure2.ProcedureExecutor<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>private intloadARowPerRegion(org.apache.hadoop.hbase.client.Table t, List<org.apache.hadoop.hbase.client.RegionInfo> ris) private voidvoidsetup()static voidprivate static voidsetupConf(org.apache.hadoop.conf.Configuration conf) voidtearDown()private voidtestMerge(org.apache.hadoop.hbase.TableName tableName, int mergeCount) voidThis tests two concurrent region mergesvoidThis tests ten region merges in one go.voidThis tests two region mergesvoidvoidvoidvoid
-
Field Details
-
CLASS_RULE
-
LOG
-
name
-
UTIL
-
initialRegionCount
- See Also:
-
FAMILY
-
admin
-
mergeProcMetrics
-
assignProcMetrics
-
unassignProcMetrics
-
mergeSubmittedCount
-
mergeFailedCount
-
assignSubmittedCount
-
assignFailedCount
-
unassignSubmittedCount
-
unassignFailedCount
-
-
Constructor Details
-
TestMergeTableRegionsProcedure
public TestMergeTableRegionsProcedure()
-
-
Method Details
-
setupConf
-
setupCluster
- Throws:
Exception
-
cleanupTest
- Throws:
Exception
-
setup
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
resetProcExecutorTestingKillFlag
-
loadARowPerRegion
private int loadARowPerRegion(org.apache.hadoop.hbase.client.Table t, List<org.apache.hadoop.hbase.client.RegionInfo> ris) throws IOException - Throws:
IOException
-
testMergeTwoRegions
This tests two region merges- Throws:
Exception
-
testMerge
private void testMerge(org.apache.hadoop.hbase.TableName tableName, int mergeCount) throws IOException - Throws:
IOException
-
testMergeTenRegions
This tests ten region merges in one go.- Throws:
Exception
-
testMergeRegionsConcurrently
This tests two concurrent region merges- Throws:
Exception
-
testRecoveryAndDoubleExecution
- Throws:
Exception
-
testRollbackAndDoubleExecution
- Throws:
Exception
-
testMergeWithoutPONR
- Throws:
Exception
-
testMergingRegionWhileTakingSnapshot
- Throws:
Exception
-
createTable
private List<org.apache.hadoop.hbase.client.RegionInfo> createTable(org.apache.hadoop.hbase.TableName tableName) throws Exception - Throws:
Exception
-
assertRegionCount
public List<org.apache.hadoop.hbase.client.RegionInfo> assertRegionCount(org.apache.hadoop.hbase.TableName tableName, int nregions) throws Exception - Throws:
Exception
-
getMasterProcedureExecutor
private org.apache.hadoop.hbase.procedure2.ProcedureExecutor<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv> getMasterProcedureExecutor() -
collectAssignmentManagerMetrics
-