public class TestSimpleRegionNormalizer extends Object
SimpleRegionNormalizer
.Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.slf4j.Logger |
LOG |
private static org.apache.hadoop.hbase.master.MasterRpcServices |
masterRpcServices |
private static org.apache.hadoop.hbase.master.MasterServices |
masterServices |
org.junit.rules.TestName |
name |
private static org.apache.hadoop.hbase.master.normalizer.RegionNormalizer |
normalizer |
Constructor and Description |
---|
TestSimpleRegionNormalizer() |
Modifier and Type | Method and Description |
---|---|
static void |
beforeAllTests() |
protected void |
setupMocksForNormalizer(Map<byte[],Integer> regionSizes,
List<org.apache.hadoop.hbase.client.RegionInfo> RegionInfo) |
void |
testMergeOfSecondSmallestRegions() |
void |
testMergeOfSmallNonAdjacentRegions() |
void |
testMergeOfSmallRegions() |
void |
testNoNormalizationForMetaTable() |
void |
testNoNormalizationIfTooFewRegions() |
void |
testNoNormalizationOnNormalizedCluster() |
void |
testSplitOfLargeRegion() |
void |
testSplitWithTargetRegionCount() |
void |
testSplitWithTargetRegionSize() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static org.apache.hadoop.hbase.master.normalizer.RegionNormalizer normalizer
private static org.apache.hadoop.hbase.master.MasterServices masterServices
private static org.apache.hadoop.hbase.master.MasterRpcServices masterRpcServices
public org.junit.rules.TestName name
public TestSimpleRegionNormalizer()
public static void beforeAllTests() throws Exception
Exception
public void testNoNormalizationForMetaTable() throws org.apache.hadoop.hbase.HBaseIOException
org.apache.hadoop.hbase.HBaseIOException
public void testNoNormalizationIfTooFewRegions() throws org.apache.hadoop.hbase.HBaseIOException
org.apache.hadoop.hbase.HBaseIOException
public void testNoNormalizationOnNormalizedCluster() throws org.apache.hadoop.hbase.HBaseIOException
org.apache.hadoop.hbase.HBaseIOException
public void testMergeOfSmallRegions() throws org.apache.hadoop.hbase.HBaseIOException
org.apache.hadoop.hbase.HBaseIOException
public void testMergeOfSecondSmallestRegions() throws org.apache.hadoop.hbase.HBaseIOException
org.apache.hadoop.hbase.HBaseIOException
public void testMergeOfSmallNonAdjacentRegions() throws org.apache.hadoop.hbase.HBaseIOException
org.apache.hadoop.hbase.HBaseIOException
public void testSplitOfLargeRegion() throws org.apache.hadoop.hbase.HBaseIOException
org.apache.hadoop.hbase.HBaseIOException
public void testSplitWithTargetRegionCount() throws Exception
Exception
public void testSplitWithTargetRegionSize() throws Exception
Exception
protected void setupMocksForNormalizer(Map<byte[],Integer> regionSizes, List<org.apache.hadoop.hbase.client.RegionInfo> RegionInfo)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.