public class TestSplitTableRegionProcedure extends Object
| Modifier and Type | Field and Description |
|---|---|
private org.apache.hadoop.hbase.master.assignment.AssignmentManager |
am |
private long |
assignFailedCount |
private org.apache.hadoop.hbase.procedure2.ProcedureMetrics |
assignProcMetrics |
private long |
assignSubmittedCount |
static HBaseClassTestRule |
CLASS_RULE |
private static String |
ColumnFamilyName1 |
private static String |
ColumnFamilyName2 |
private static org.slf4j.Logger |
LOG |
org.junit.rules.TestName |
name |
private static int |
rowCount |
private long |
splitFailedCount |
private org.apache.hadoop.hbase.procedure2.ProcedureMetrics |
splitProcMetrics |
private long |
splitSubmittedCount |
private static int |
startRowNum |
private long |
unassignFailedCount |
private org.apache.hadoop.hbase.procedure2.ProcedureMetrics |
unassignProcMetrics |
private long |
unassignSubmittedCount |
protected static HBaseTestingUtility |
UTIL |
| Constructor and Description |
|---|
TestSplitTableRegionProcedure() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cleanupTest() |
private void |
collectAssignmentManagerMetrics() |
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> |
getMasterProcedureExecutor() |
private void |
insertData(org.apache.hadoop.hbase.TableName tableName) |
void |
setup() |
static void |
setupCluster() |
private static void |
setupConf(org.apache.hadoop.conf.Configuration conf) |
void |
tearDown() |
void |
testInvalidSplitKey() |
void |
testRecoveryAndDoubleExecution() |
void |
testRollbackAndDoubleExecution() |
void |
testSplitTableRegion() |
void |
testSplitTableRegionDeletedRowsDaughter() |
void |
testSplitTableRegionEmptyDaughter() |
void |
testSplitTableRegionNoStoreFile() |
void |
testSplitTableRegionUnevenDaughter() |
void |
testSplitWithoutPONR() |
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) |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
protected static final HBaseTestingUtility UTIL
private static String ColumnFamilyName1
private static String ColumnFamilyName2
private static final int startRowNum
private static final int rowCount
private org.apache.hadoop.hbase.master.assignment.AssignmentManager am
private org.apache.hadoop.hbase.procedure2.ProcedureMetrics splitProcMetrics
private org.apache.hadoop.hbase.procedure2.ProcedureMetrics assignProcMetrics
private org.apache.hadoop.hbase.procedure2.ProcedureMetrics unassignProcMetrics
private long splitSubmittedCount
private long splitFailedCount
private long assignSubmittedCount
private long assignFailedCount
private long unassignSubmittedCount
private long unassignFailedCount
public org.junit.rules.TestName name
public TestSplitTableRegionProcedure()
private static void setupConf(org.apache.hadoop.conf.Configuration conf)
public static void setupCluster() throws Exception
Exceptionpublic static void cleanupTest() throws Exception
Exceptionpublic void testSplitTableRegion() throws Exception
Exceptionpublic void testSplitTableRegionNoStoreFile() throws Exception
Exceptionpublic void testSplitTableRegionUnevenDaughter() throws Exception
Exceptionpublic void testSplitTableRegionEmptyDaughter() throws Exception
Exceptionpublic void testSplitTableRegionDeletedRowsDaughter() throws Exception
Exceptionpublic void testInvalidSplitKey() throws Exception
Exceptionpublic void testRollbackAndDoubleExecution() throws Exception
Exceptionpublic void testRecoveryAndDoubleExecution() throws Exception
Exceptionpublic void testSplitWithoutPONR() throws Exception
Exceptionprivate void insertData(org.apache.hadoop.hbase.TableName tableName) throws IOException, InterruptedException
IOExceptionInterruptedExceptionprivate void deleteData(org.apache.hadoop.hbase.TableName tableName, int startDeleteRowNum) throws IOException, InterruptedException
IOExceptionInterruptedExceptionprivate void verify(org.apache.hadoop.hbase.TableName tableName, int splitRowNum) throws IOException
IOExceptionprivate void verifyData(org.apache.hadoop.hbase.regionserver.HRegion newReg, int startRow, int numRows, byte[]... families) throws IOException
IOExceptionprivate org.apache.hadoop.hbase.procedure2.ProcedureExecutor<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv> getMasterProcedureExecutor()
private void collectAssignmentManagerMetrics()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.