public class TestMetaFixer extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
org.junit.rules.TestName |
name |
private static HBaseTestingUtility |
TEST_UTIL |
Constructor and Description |
---|
TestMetaFixer() |
Modifier and Type | Method and Description |
---|---|
private void |
deleteRegion(org.apache.hadoop.hbase.master.MasterServices services,
org.apache.hadoop.hbase.client.RegionInfo ri) |
private static org.apache.hadoop.hbase.client.RegionInfo |
makeOverlap(org.apache.hadoop.hbase.master.MasterServices services,
org.apache.hadoop.hbase.client.RegionInfo a,
org.apache.hadoop.hbase.client.RegionInfo b) |
static void |
setupBeforeClass() |
static void |
tearDownAfterClass() |
void |
testMergeWithMergedChildRegion()
This test covers the case that one of merged parent regions is a merged child region that has
not been GCed but there is no reference files anymore.
|
void |
testMultipleTableOverlaps() |
void |
testOneRegionTable()
Just make sure running fixMeta does right thing for the case of a single-region Table where the
region gets dropped.
|
void |
testOverlap() |
private void |
testOverlapCommon(org.apache.hadoop.hbase.TableName tn) |
void |
testOverlapWithMergeOfNonContiguous()
Make it so a big overlap spans many Regions, some of which are non-contiguous.
|
void |
testOverlapWithSmallMergeCount() |
void |
testPlugsHoles() |
void |
testPlugsHolesWithReadReplica() |
private void |
testPlugsHolesWithReadReplicaInternal(org.apache.hadoop.hbase.TableName tn,
int replicaCount) |
public static final HBaseClassTestRule CLASS_RULE
public org.junit.rules.TestName name
private static final HBaseTestingUtility TEST_UTIL
public TestMetaFixer()
public static void setupBeforeClass() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
private void deleteRegion(org.apache.hadoop.hbase.master.MasterServices services, org.apache.hadoop.hbase.client.RegionInfo ri) throws IOException
IOException
private void testPlugsHolesWithReadReplicaInternal(org.apache.hadoop.hbase.TableName tn, int replicaCount) throws Exception
Exception
public void testPlugsHoles() throws Exception
Exception
public void testPlugsHolesWithReadReplica() throws Exception
Exception
public void testOneRegionTable() throws IOException
IOException
private static org.apache.hadoop.hbase.client.RegionInfo makeOverlap(org.apache.hadoop.hbase.master.MasterServices services, org.apache.hadoop.hbase.client.RegionInfo a, org.apache.hadoop.hbase.client.RegionInfo b) throws IOException
IOException
private void testOverlapCommon(org.apache.hadoop.hbase.TableName tn) throws Exception
Exception
public void testOverlap() throws Exception
Exception
public void testMultipleTableOverlaps() throws Exception
Exception
public void testOverlapWithSmallMergeCount() throws Exception
Exception
public void testMergeWithMergedChildRegion() throws Exception
Exception
public void testOverlapWithMergeOfNonContiguous() throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.