Class TestMergeTableRegionsProcedure
java.lang.Object
org.apache.hadoop.hbase.master.assignment.TestMergeTableRegionsProcedure
-
Field Summary
Modifier and TypeFieldDescriptionprivate static org.apache.hadoop.hbase.client.Admin
private long
private org.apache.hadoop.hbase.procedure2.ProcedureMetrics
private long
static final HBaseClassTestRule
private static final byte[]
private static final int
private static final org.slf4j.Logger
private long
private org.apache.hadoop.hbase.procedure2.ProcedureMetrics
private long
final org.junit.rules.TestName
private long
private org.apache.hadoop.hbase.procedure2.ProcedureMetrics
private long
private static final HBaseTestingUtility
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionList<org.apache.hadoop.hbase.client.RegionInfo>
assertRegionCount
(org.apache.hadoop.hbase.TableName tableName, int nregions) static void
private void
private 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 int
loadARowPerRegion
(org.apache.hadoop.hbase.client.Table t, List<org.apache.hadoop.hbase.client.RegionInfo> ris) private void
void
setup()
static void
private static void
setupConf
(org.apache.hadoop.conf.Configuration conf) void
tearDown()
private void
testMerge
(org.apache.hadoop.hbase.TableName tableName, int mergeCount) void
This tests two concurrent region mergesvoid
This tests ten region merges in one go.void
This tests two region mergesvoid
void
void
void
-
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
-