Class TestMetaFixer
java.lang.Object
org.apache.hadoop.hbase.master.janitor.TestMetaFixer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleorg.junit.rules.TestNameprivate static final HBaseTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voiddeleteRegion(org.apache.hadoop.hbase.master.MasterServices services, org.apache.hadoop.hbase.client.RegionInfo ri) private static org.apache.hadoop.hbase.client.RegionInfomakeOverlap(org.apache.hadoop.hbase.master.MasterServices services, org.apache.hadoop.hbase.client.RegionInfo a, org.apache.hadoop.hbase.client.RegionInfo b) static voidstatic voidvoidThis 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.voidvoidJust make sure running fixMeta does right thing for the case of a single-region Table where the region gets dropped.voidprivate voidtestOverlapCommon(org.apache.hadoop.hbase.TableName tn) voidMake it so a big overlap spans many Regions, some of which are non-contiguous.voidvoidvoidprivate voidtestPlugsHolesWithReadReplicaInternal(org.apache.hadoop.hbase.TableName tn, int replicaCount)
-
Field Details
-
CLASS_RULE
-
name
-
TEST_UTIL
-
-
Constructor Details
-
TestMetaFixer
public TestMetaFixer()
-
-
Method Details
-
setupBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
deleteRegion
private void deleteRegion(org.apache.hadoop.hbase.master.MasterServices services, org.apache.hadoop.hbase.client.RegionInfo ri) throws IOException - Throws:
IOException
-
testPlugsHolesWithReadReplicaInternal
private void testPlugsHolesWithReadReplicaInternal(org.apache.hadoop.hbase.TableName tn, int replicaCount) throws Exception - Throws:
Exception
-
testPlugsHoles
- Throws:
Exception
-
testPlugsHolesWithReadReplica
- Throws:
Exception
-
testOneRegionTable
Just make sure running fixMeta does right thing for the case of a single-region Table where the region gets dropped. There is nothing much we can do. We can't restore what we don't know about (at least from a read of hbase:meta).- Throws:
IOException
-
makeOverlap
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 - Throws:
IOException
-
testOverlapCommon
- Throws:
Exception
-
testOverlap
- Throws:
Exception
-
testMultipleTableOverlaps
- Throws:
Exception
-
testOverlapWithSmallMergeCount
- Throws:
Exception
-
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. In this case, it will kick off a GC procedure, but no merge will happen.- Throws:
Exception
-
testOverlapWithMergeOfNonContiguous
Make it so a big overlap spans many Regions, some of which are non-contiguous. Make it so we can fix this condition. HBASE-24247- Throws:
Exception
-