Class TestSplitTableRegionProcedure
java.lang.Object
org.apache.hadoop.hbase.master.assignment.TestSplitTableRegionProcedure
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
This copro is used to slow down opening of the replica regions. -
Field Summary
Modifier and TypeFieldDescriptionprivate org.apache.hadoop.hbase.master.assignment.AssignmentManager
private long
private org.apache.hadoop.hbase.procedure2.ProcedureMetrics
private long
static final HBaseClassTestRule
private static String
private static String
private static final org.slf4j.Logger
org.junit.rules.TestName
private static final int
private long
private org.apache.hadoop.hbase.procedure2.ProcedureMetrics
private long
private static final int
private long
private org.apache.hadoop.hbase.procedure2.ProcedureMetrics
private long
protected static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
private void
private void
deleteData
(org.apache.hadoop.hbase.TableName tableName, int startDeleteRowNum) private org.apache.hadoop.hbase.procedure2.ProcedureExecutor<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>
void
setup()
static void
private static void
setupConf
(org.apache.hadoop.conf.Configuration conf) void
tearDown()
void
void
void
void
void
void
void
void
void
void
void
private void
verify
(org.apache.hadoop.hbase.TableName tableName, int splitRowNum) private void
verifyData
(org.apache.hadoop.hbase.regionserver.HRegion newReg, int startRow, int numRows, byte[]... families)
-
Field Details
-
CLASS_RULE
-
LOG
-
UTIL
-
columnFamilyName1
-
columnFamilyName2
-
startRowNum
- See Also:
-
rowCount
- See Also:
-
am
-
splitProcMetrics
-
assignProcMetrics
-
unassignProcMetrics
-
splitSubmittedCount
-
splitFailedCount
-
assignSubmittedCount
-
assignFailedCount
-
unassignSubmittedCount
-
unassignFailedCount
-
name
-
-
Constructor Details
-
TestSplitTableRegionProcedure
public TestSplitTableRegionProcedure()
-
-
Method Details
-
setupConf
-
setupCluster
- Throws:
Exception
-
cleanupTest
- Throws:
Exception
-
setup
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
testRollbackForSplitTableRegionWithReplica
- Throws:
Exception
-
testSplitTableRegion
- Throws:
Exception
-
testSplitTableRegionNoStoreFile
- Throws:
Exception
-
testSplitTableRegionUnevenDaughter
- Throws:
Exception
-
testSplitTableRegionEmptyDaughter
- Throws:
Exception
-
testSplitTableRegionDeletedRowsDaughter
- Throws:
Exception
-
testInvalidSplitKey
- Throws:
Exception
-
testRollbackAndDoubleExecution
- Throws:
Exception
-
testRecoveryAndDoubleExecution
- Throws:
Exception
-
testSplitWithoutPONR
- Throws:
Exception
-
testSplitRegionWhileTakingSnapshot
- Throws:
Exception
-
deleteData
private void deleteData(org.apache.hadoop.hbase.TableName tableName, int startDeleteRowNum) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
verify
private void verify(org.apache.hadoop.hbase.TableName tableName, int splitRowNum) throws IOException - Throws:
IOException
-
verifyData
private void verifyData(org.apache.hadoop.hbase.regionserver.HRegion newReg, int startRow, int numRows, byte[]... families) throws IOException - Throws:
IOException
-
getMasterProcedureExecutor
private org.apache.hadoop.hbase.procedure2.ProcedureExecutor<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv> getMasterProcedureExecutor() -
collectAssignmentManagerMetrics
-