public class TestMergeTableRegionsProcedure extends Object
Modifier and Type | Field and Description |
---|---|
private static org.apache.hadoop.hbase.client.Admin |
admin |
private long |
assignFailedCount |
private org.apache.hadoop.hbase.procedure2.ProcedureMetrics |
assignProcMetrics |
private long |
assignSubmittedCount |
static HBaseClassTestRule |
CLASS_RULE |
private static byte[] |
FAMILY |
private static int |
initialRegionCount |
private static org.slf4j.Logger |
LOG |
private long |
mergeFailedCount |
private org.apache.hadoop.hbase.procedure2.ProcedureMetrics |
mergeProcMetrics |
private long |
mergeSubmittedCount |
org.junit.rules.TestName |
name |
private long |
unassignFailedCount |
private org.apache.hadoop.hbase.procedure2.ProcedureMetrics |
unassignProcMetrics |
private long |
unassignSubmittedCount |
private static HBaseTestingUtility |
UTIL |
Constructor and Description |
---|
TestMergeTableRegionsProcedure() |
Modifier and Type | Method and Description |
---|---|
List<org.apache.hadoop.hbase.client.RegionInfo> |
assertRegionCount(org.apache.hadoop.hbase.TableName tableName,
int nregions) |
static void |
cleanupTest() |
private void |
collectAssignmentManagerMetrics() |
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> |
getMasterProcedureExecutor() |
private int |
loadARowPerRegion(org.apache.hadoop.hbase.client.Table t,
List<org.apache.hadoop.hbase.client.RegionInfo> ris) |
private void |
resetProcExecutorTestingKillFlag() |
void |
setup() |
static void |
setupCluster() |
private static void |
setupConf(org.apache.hadoop.conf.Configuration conf) |
void |
tearDown() |
private void |
testMerge(org.apache.hadoop.hbase.TableName tableName,
int mergeCount) |
void |
testMergeRegionsConcurrently()
This tests two concurrent region merges
|
void |
testMergeTenRegions()
This tests ten region merges in one go.
|
void |
testMergeTwoRegions()
This tests two region merges
|
void |
testMergeWithoutPONR() |
void |
testRecoveryAndDoubleExecution() |
void |
testRollbackAndDoubleExecution() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
public final org.junit.rules.TestName name
private static final HBaseTestingUtility UTIL
private static final int initialRegionCount
private static final byte[] FAMILY
private static org.apache.hadoop.hbase.client.Admin admin
private org.apache.hadoop.hbase.procedure2.ProcedureMetrics mergeProcMetrics
private org.apache.hadoop.hbase.procedure2.ProcedureMetrics assignProcMetrics
private org.apache.hadoop.hbase.procedure2.ProcedureMetrics unassignProcMetrics
private long mergeSubmittedCount
private long mergeFailedCount
private long assignSubmittedCount
private long assignFailedCount
private long unassignSubmittedCount
private long unassignFailedCount
public TestMergeTableRegionsProcedure()
private static void setupConf(org.apache.hadoop.conf.Configuration conf)
public static void setupCluster() throws Exception
Exception
public static void cleanupTest() throws Exception
Exception
private void resetProcExecutorTestingKillFlag()
private int loadARowPerRegion(org.apache.hadoop.hbase.client.Table t, List<org.apache.hadoop.hbase.client.RegionInfo> ris) throws IOException
IOException
public void testMergeTwoRegions() throws Exception
Exception
private void testMerge(org.apache.hadoop.hbase.TableName tableName, int mergeCount) throws IOException
IOException
public void testMergeTenRegions() throws Exception
Exception
public void testMergeRegionsConcurrently() throws Exception
Exception
public void testRecoveryAndDoubleExecution() throws Exception
Exception
public void testRollbackAndDoubleExecution() throws Exception
Exception
public void testMergeWithoutPONR() throws Exception
Exception
private List<org.apache.hadoop.hbase.client.RegionInfo> createTable(org.apache.hadoop.hbase.TableName tableName) throws Exception
Exception
public List<org.apache.hadoop.hbase.client.RegionInfo> assertRegionCount(org.apache.hadoop.hbase.TableName tableName, int nregions) throws Exception
Exception
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.