public class TestSimpleRegionNormalizer extends Object
SimpleRegionNormalizer
.Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private org.apache.hadoop.conf.Configuration |
conf |
private org.apache.hadoop.hbase.master.MasterServices |
masterServices |
TableNameTestRule |
name |
private org.apache.hadoop.hbase.master.normalizer.SimpleRegionNormalizer |
normalizer |
private org.apache.hadoop.hbase.client.TableDescriptor |
tableDescriptor |
Constructor and Description |
---|
TestSimpleRegionNormalizer() |
Modifier and Type | Method and Description |
---|---|
void |
before() |
private static org.apache.hadoop.hbase.client.RegionInfo |
createRegionInfo(org.apache.hadoop.hbase.TableName tableName,
byte[] startKey,
byte[] endKey) |
private static List<org.apache.hadoop.hbase.client.RegionInfo> |
createRegionInfos(org.apache.hadoop.hbase.TableName tableName,
byte[][] splitKeys) |
private static List<org.apache.hadoop.hbase.client.RegionInfo> |
createRegionInfos(org.apache.hadoop.hbase.TableName tableName,
int length)
Create a list of
RegionInfo s that represent a region chain of the specified length. |
private static Map<byte[],Integer> |
createRegionSizesMap(List<org.apache.hadoop.hbase.client.RegionInfo> regionInfos,
int... sizes) |
private static long |
generateRegionId() |
private void |
honorsMinimumRegionCount(String confKey) |
private void |
honorsOldMinimumRegionCountInTD(String confKey) |
private void |
noNormalizationOnTransitioningRegions(org.apache.hadoop.hbase.master.RegionState.State state) |
private void |
setupMocksForNormalizer(Map<byte[],Integer> regionSizes,
List<org.apache.hadoop.hbase.client.RegionInfo> regionInfoList) |
void |
testHonorsMergeEnabled() |
void |
testHonorsMergeEnabledInTD() |
void |
testHonorsMergeMinRegionAge() |
void |
testHonorsMergeMinRegionAgeInTD() |
void |
testHonorsMergeMinRegionSize() |
void |
testHonorsMergeMinRegionSizeInTD() |
void |
testHonorsMinimumRegionCount() |
void |
testHonorsMinimumRegionCountInTD() |
void |
testHonorsOldMinimumRegionCount()
Test the backward compatibility of the deprecated MIN_REGION_COUNT_KEY configuration.
|
void |
testHonorsOldMinimumRegionCountInTD()
Test the backward compatibility of the deprecated MIN_REGION_COUNT_KEY configuration in table
descriptor.
|
void |
testHonorsSplitEnabled() |
void |
testHonorsSplitEnabledInTD() |
void |
testMergeEmptyRegions0() |
void |
testMergeEmptyRegions1() |
void |
testMergeEmptyRegions2() |
void |
testMergeOfSecondSmallestRegions() |
void |
testMergeOfSmallNonAdjacentRegions() |
void |
testMergeOfSmallRegions() |
void |
testNoNormalizationForMetaTable() |
void |
testNoNormalizationIfTooFewRegions() |
void |
testNoNormalizationOnMergedRegions() |
void |
testNoNormalizationOnMergingNewRegions() |
void |
testNoNormalizationOnMergingRegions() |
void |
testNoNormalizationOnNormalizedCluster() |
void |
testNoNormalizationOnSplitRegions() |
void |
testNoNormalizationOnSplittingNewRegions() |
void |
testNoNormalizationOnSplittingRegions() |
void |
testNormalizerCannotMergeNonAdjacentRegions() |
void |
testSplitAndMultiMerge() |
void |
testSplitOfLargeRegion() |
void |
testSplitWithTargetRegionCount() |
void |
testWithTargetRegionSize() |
public static final HBaseClassTestRule CLASS_RULE
private org.apache.hadoop.conf.Configuration conf
private org.apache.hadoop.hbase.master.normalizer.SimpleRegionNormalizer normalizer
private org.apache.hadoop.hbase.master.MasterServices masterServices
private org.apache.hadoop.hbase.client.TableDescriptor tableDescriptor
public TableNameTestRule name
public TestSimpleRegionNormalizer()
public void before()
public void testNoNormalizationForMetaTable()
public void testNoNormalizationIfTooFewRegions()
public void testNoNormalizationOnNormalizedCluster()
private void noNormalizationOnTransitioningRegions(org.apache.hadoop.hbase.master.RegionState.State state)
public void testNoNormalizationOnMergingNewRegions()
public void testNoNormalizationOnMergingRegions()
public void testNoNormalizationOnMergedRegions()
public void testNoNormalizationOnSplittingNewRegions()
public void testNoNormalizationOnSplittingRegions()
public void testNoNormalizationOnSplitRegions()
public void testMergeOfSmallRegions()
public void testMergeOfSecondSmallestRegions()
public void testMergeOfSmallNonAdjacentRegions()
public void testSplitOfLargeRegion()
public void testWithTargetRegionSize() throws Exception
Exception
public void testSplitWithTargetRegionCount() throws Exception
Exception
public void testHonorsSplitEnabled()
public void testHonorsSplitEnabledInTD()
public void testHonorsMergeEnabled()
public void testHonorsMergeEnabledInTD()
public void testHonorsMinimumRegionCount()
public void testHonorsOldMinimumRegionCount()
private void honorsMinimumRegionCount(String confKey)
public void testHonorsMinimumRegionCountInTD()
public void testHonorsOldMinimumRegionCountInTD()
private void honorsOldMinimumRegionCountInTD(String confKey)
public void testHonorsMergeMinRegionAge()
public void testHonorsMergeMinRegionAgeInTD()
public void testHonorsMergeMinRegionSize()
public void testHonorsMergeMinRegionSizeInTD()
public void testMergeEmptyRegions0()
public void testMergeEmptyRegions1()
public void testMergeEmptyRegions2()
public void testSplitAndMultiMerge()
public void testNormalizerCannotMergeNonAdjacentRegions()
private void setupMocksForNormalizer(Map<byte[],Integer> regionSizes, List<org.apache.hadoop.hbase.client.RegionInfo> regionInfoList)
private static List<org.apache.hadoop.hbase.client.RegionInfo> createRegionInfos(org.apache.hadoop.hbase.TableName tableName, int length)
RegionInfo
s that represent a region chain of the specified length.private static org.apache.hadoop.hbase.client.RegionInfo createRegionInfo(org.apache.hadoop.hbase.TableName tableName, byte[] startKey, byte[] endKey)
private static long generateRegionId()
private static List<org.apache.hadoop.hbase.client.RegionInfo> createRegionInfos(org.apache.hadoop.hbase.TableName tableName, byte[][] splitKeys)
private static Map<byte[],Integer> createRegionSizesMap(List<org.apache.hadoop.hbase.client.RegionInfo> regionInfos, int... sizes)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.