Class TestSplitTableRegionProcedure
java.lang.Object
org.apache.hadoop.hbase.master.assignment.TestSplitTableRegionProcedure
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis copro is used to slow down opening of the replica regions. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.hadoop.hbase.master.assignment.AssignmentManagerprivate longprivate org.apache.hadoop.hbase.procedure2.ProcedureMetricsprivate longstatic final HBaseClassTestRuleprivate static Stringprivate static Stringprivate static final org.slf4j.Loggerorg.junit.rules.TestNameprivate static final intprivate longprivate org.apache.hadoop.hbase.procedure2.ProcedureMetricsprivate longprivate static final intprivate longprivate org.apache.hadoop.hbase.procedure2.ProcedureMetricsprivate longprotected static final HBaseTestingUtility -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidprivate voidprivate voiddeleteData(org.apache.hadoop.hbase.TableName tableName, int startDeleteRowNum) private org.apache.hadoop.hbase.procedure2.ProcedureExecutor<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>voidsetup()static voidprivate static voidsetupConf(org.apache.hadoop.conf.Configuration conf) voidtearDown()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidprivate voidverify(org.apache.hadoop.hbase.TableName tableName, int splitRowNum) private voidverifyData(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:
IOExceptionInterruptedException
-
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
-