Class TestMetaFixer
java.lang.Object
org.apache.hadoop.hbase.master.janitor.TestMetaFixer
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
org.junit.rules.TestName
private static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate 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
static void
void
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
void
Just make sure running fixMeta does right thing for the case of a single-region Table where the region gets dropped.void
private void
testOverlapCommon
(org.apache.hadoop.hbase.TableName tn) void
Make it so a big overlap spans many Regions, some of which are non-contiguous.void
void
void
private void
testPlugsHolesWithReadReplicaInternal
(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
-