public class TestSplitTableRegionProcedure extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TestSplitTableRegionProcedure.RegionServerHostingReplicaSlowOpenCopro
This copro is used to slow down opening of the replica regions.
|
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() |
void |
setup() |
static void |
setupCluster() |
private static void |
setupConf(org.apache.hadoop.conf.Configuration conf) |
void |
tearDown() |
void |
testInvalidSplitKey() |
void |
testRecoveryAndDoubleExecution() |
void |
testRollbackAndDoubleExecution() |
void |
testRollbackForSplitTableRegionWithReplica() |
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
Exception
public static void cleanupTest() throws Exception
Exception
public void testRollbackForSplitTableRegionWithReplica() throws Exception
Exception
public void testSplitTableRegion() throws Exception
Exception
public void testSplitTableRegionNoStoreFile() throws Exception
Exception
public void testSplitTableRegionUnevenDaughter() throws Exception
Exception
public void testSplitTableRegionEmptyDaughter() throws Exception
Exception
public void testSplitTableRegionDeletedRowsDaughter() throws Exception
Exception
public void testInvalidSplitKey() throws Exception
Exception
public void testRollbackAndDoubleExecution() throws Exception
Exception
public void testRecoveryAndDoubleExecution() throws Exception
Exception
public void testSplitWithoutPONR() throws Exception
Exception
private void deleteData(org.apache.hadoop.hbase.TableName tableName, int startDeleteRowNum) throws IOException, InterruptedException
IOException
InterruptedException
private void verify(org.apache.hadoop.hbase.TableName tableName, int splitRowNum) throws IOException
IOException
private void verifyData(org.apache.hadoop.hbase.regionserver.HRegion newReg, int startRow, int numRows, byte[]... families) throws IOException
IOException
private 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.