Class TestSimpleRegionNormalizer
java.lang.Object
org.apache.hadoop.hbase.master.normalizer.TestSimpleRegionNormalizer
Tests logic of
SimpleRegionNormalizer
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private org.apache.hadoop.conf.Configuration
private org.apache.hadoop.hbase.master.MasterServices
private org.apache.hadoop.hbase.master.normalizer.SimpleRegionNormalizer
private org.apache.hadoop.hbase.client.TableDescriptor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 ofRegionInfo
s that represent a region chain of the specified length.createRegionSizesMap
(List<org.apache.hadoop.hbase.client.RegionInfo> regionInfos, int... sizes) private static long
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
void
void
void
void
void
void
void
void
void
void
Test the backward compatibility of the deprecated MIN_REGION_COUNT_KEY configuration.void
Test the backward compatibility of the deprecated MIN_REGION_COUNT_KEY configuration in table descriptor.void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
-
Field Details
-
CLASS_RULE
-
conf
-
normalizer
-
masterServices
-
tableDescriptor
-
name
-
-
Constructor Details
-
TestSimpleRegionNormalizer
public TestSimpleRegionNormalizer()
-
-
Method Details
-
before
-
testNoNormalizationForMetaTable
-
testNoNormalizationIfTooFewRegions
-
testNoNormalizationOnNormalizedCluster
-
noNormalizationOnTransitioningRegions
private void noNormalizationOnTransitioningRegions(org.apache.hadoop.hbase.master.RegionState.State state) -
testNoNormalizationOnMergingNewRegions
-
testNoNormalizationOnMergingRegions
-
testNoNormalizationOnMergedRegions
-
testNoNormalizationOnSplittingNewRegions
-
testNoNormalizationOnSplittingRegions
-
testNoNormalizationOnSplitRegions
-
testMergeOfSmallRegions
-
testMergeOfSecondSmallestRegions
-
testMergeOfSmallNonAdjacentRegions
-
testSplitOfLargeRegion
-
testWithTargetRegionSize
- Throws:
Exception
-
testSplitWithTargetRegionCount
- Throws:
Exception
-
testHonorsSplitEnabled
-
testHonorsSplitEnabledInTD
-
testHonorsMergeEnabled
-
testHonorsMergeEnabledInTD
-
testHonorsMinimumRegionCount
-
testHonorsOldMinimumRegionCount
Test the backward compatibility of the deprecated MIN_REGION_COUNT_KEY configuration. -
honorsMinimumRegionCount
-
testHonorsMinimumRegionCountInTD
-
testHonorsOldMinimumRegionCountInTD
Test the backward compatibility of the deprecated MIN_REGION_COUNT_KEY configuration in table descriptor. -
honorsOldMinimumRegionCountInTD
-
testHonorsMergeMinRegionAge
-
testHonorsMergeMinRegionAgeInTD
-
testHonorsMergeMinRegionSize
-
testHonorsMergeMinRegionSizeInTD
-
testHonorsMergeRequestMaxNumberOfRegionsCount
-
testHonorsMergeRequestMaxNumberOfRegionsCountDefault
-
testMergeEmptyRegions0
-
testMergeEmptyRegions1
-
testMergeEmptyRegions2
-
testSplitAndMultiMerge
-
testNormalizerCannotMergeNonAdjacentRegions
-
testSizeLimitShufflesPlans
-
setupMocksForNormalizer
private void setupMocksForNormalizer(Map<byte[], Integer> regionSizes, List<org.apache.hadoop.hbase.client.RegionInfo> regionInfoList) -
createRegionInfos
private static List<org.apache.hadoop.hbase.client.RegionInfo> createRegionInfos(org.apache.hadoop.hbase.TableName tableName, int length) Create a list ofRegionInfo
s that represent a region chain of the specified length. -
createRegionInfo
private static org.apache.hadoop.hbase.client.RegionInfo createRegionInfo(org.apache.hadoop.hbase.TableName tableName, byte[] startKey, byte[] endKey) -
generateRegionId
-
createRegionInfos
private static List<org.apache.hadoop.hbase.client.RegionInfo> createRegionInfos(org.apache.hadoop.hbase.TableName tableName, byte[][] splitKeys) -
createRegionSizesMap
private static Map<byte[],Integer> createRegionSizesMap(List<org.apache.hadoop.hbase.client.RegionInfo> regionInfos, int... sizes)
-