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 |
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() |
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
Exceptionpublic static void tearDownAfterClass() throws Exception
Exceptionprivate void deleteRegion(org.apache.hadoop.hbase.master.MasterServices services, org.apache.hadoop.hbase.client.RegionInfo ri) throws IOException
IOExceptionpublic void testPlugsHoles() throws Exception
Exceptionpublic void testOneRegionTable() throws IOException
IOExceptionprivate 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
IOExceptionprivate void testOverlapCommon(org.apache.hadoop.hbase.TableName tn) throws Exception
Exceptionpublic void testOverlap() throws Exception
Exceptionpublic void testOverlapWithSmallMergeCount() throws Exception
Exceptionpublic void testMergeWithMergedChildRegion() throws Exception
Exceptionpublic void testOverlapWithMergeOfNonContiguous() throws Exception
ExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.