public class TestSimpleRegionNormalizerOnCluster extends Object
SimpleRegionNormalizer on minicluster.| Modifier and Type | Field and Description |
|---|---|
private static org.apache.hadoop.hbase.client.Admin |
admin |
static HBaseClassTestRule |
CLASS_RULE |
private static byte[] |
FAMILY_NAME |
private static org.slf4j.Logger |
LOG |
private static org.apache.hadoop.hbase.master.HMaster |
master |
org.junit.rules.TestName |
name |
private static HBaseTestingUtility |
TEST_UTIL |
| Constructor and Description |
|---|
TestSimpleRegionNormalizerOnCluster() |
| Modifier and Type | Method and Description |
|---|---|
static void |
afterAllTests() |
void |
before() |
static void |
beforeAllTests() |
private static org.apache.hadoop.hbase.TableName |
buildTableNameForQuotaTest(String methodName) |
private static int |
createTableBegsMerge(org.apache.hadoop.hbase.TableName tableName)
create a table with 5 regions, having region sizes so as to provoke a merge
of the smallest regions.
|
private static int |
createTableBegsSplit(org.apache.hadoop.hbase.TableName tableName,
boolean normalizerEnabled,
boolean isMergeEnabled)
create a table with 5 regions, having region sizes so as to provoke a split
of the largest region.
|
private static int |
createTableTargetOfSplitAndMerge(org.apache.hadoop.hbase.TableName tableName)
Create a table with 4 regions, having region sizes so as to provoke a split of the largest
region and a merge of an empty region into the largest.
|
private static void |
dropIfExists(org.apache.hadoop.hbase.TableName tableName) |
private static void |
generateTestData(org.apache.hadoop.hbase.regionserver.Region region,
int numRows) |
private static List<org.apache.hadoop.hbase.regionserver.HRegion> |
generateTestData(org.apache.hadoop.hbase.TableName tableName,
int... regionSizesMb) |
private static int |
getRegionCount(org.apache.hadoop.hbase.TableName tableName) |
private static int |
getRegionCountUnchecked(org.apache.hadoop.hbase.TableName tableName) |
private static double |
getRegionSizeMB(org.apache.hadoop.hbase.master.MasterServices masterServices,
org.apache.hadoop.hbase.client.RegionInfo regionInfo) |
void |
testHonorsNameFilter() |
void |
testHonorsNamespaceFilter() |
void |
testHonorsNormalizerSwitch() |
void |
testHonorsNormalizerTableSetting()
Test that disabling normalizer via table configuration is honored.
|
void |
testHonorsPatternFilter() |
void |
testRegionNormalizationMerge() |
(package private) void |
testRegionNormalizationSplit(boolean limitedByQuota) |
void |
testRegionNormalizationSplitWithoutQuotaLimit() |
void |
testRegionNormalizationSplitWithQuotaLimit() |
void |
testTargetOfSplitAndMerge()
A test for when a region is the target of both a split and a merge plan.
|
private static void |
waitForSkippedSplits(org.apache.hadoop.hbase.master.HMaster master,
long existingSkippedSplitCount) |
private static void |
waitForTableRegionCount(org.apache.hadoop.hbase.TableName tableName,
org.hamcrest.Matcher<? super Integer> matcher) |
private static final org.slf4j.Logger LOG
public static final HBaseClassTestRule CLASS_RULE
private static final HBaseTestingUtility TEST_UTIL
private static final byte[] FAMILY_NAME
private static org.apache.hadoop.hbase.client.Admin admin
private static org.apache.hadoop.hbase.master.HMaster master
public org.junit.rules.TestName name
public TestSimpleRegionNormalizerOnCluster()
public static void beforeAllTests() throws Exception
Exceptionpublic static void afterAllTests() throws Exception
Exceptionpublic void testHonorsNormalizerSwitch() throws Exception
Exceptionpublic void testHonorsNormalizerTableSetting() throws Exception
Exceptionpublic void testRegionNormalizationSplitWithoutQuotaLimit() throws Exception
Exceptionpublic void testRegionNormalizationSplitWithQuotaLimit() throws Exception
Exceptionvoid testRegionNormalizationSplit(boolean limitedByQuota) throws Exception
Exceptionpublic void testRegionNormalizationMerge() throws Exception
Exceptionpublic void testHonorsNamespaceFilter() throws Exception
Exceptionpublic void testHonorsPatternFilter() throws Exception
Exceptionpublic void testHonorsNameFilter() throws Exception
Exceptionpublic void testTargetOfSplitAndMerge() throws Exception
Exceptionprivate static org.apache.hadoop.hbase.TableName buildTableNameForQuotaTest(String methodName) throws Exception
Exceptionprivate static void waitForSkippedSplits(org.apache.hadoop.hbase.master.HMaster master, long existingSkippedSplitCount)
private static void waitForTableRegionCount(org.apache.hadoop.hbase.TableName tableName, org.hamcrest.Matcher<? super Integer> matcher)
private static List<org.apache.hadoop.hbase.regionserver.HRegion> generateTestData(org.apache.hadoop.hbase.TableName tableName, int... regionSizesMb) throws IOException
IOExceptionprivate static void generateTestData(org.apache.hadoop.hbase.regionserver.Region region, int numRows) throws IOException
IOExceptionprivate static double getRegionSizeMB(org.apache.hadoop.hbase.master.MasterServices masterServices, org.apache.hadoop.hbase.client.RegionInfo regionInfo)
private static int createTableBegsSplit(org.apache.hadoop.hbase.TableName tableName, boolean normalizerEnabled, boolean isMergeEnabled) throws Exception
Exceptionprivate static int createTableBegsMerge(org.apache.hadoop.hbase.TableName tableName) throws Exception
Exceptionprivate static int createTableTargetOfSplitAndMerge(org.apache.hadoop.hbase.TableName tableName) throws Exception
Exceptionprivate static void dropIfExists(org.apache.hadoop.hbase.TableName tableName) throws Exception
Exceptionprivate static int getRegionCount(org.apache.hadoop.hbase.TableName tableName) throws IOException
IOExceptionprivate static int getRegionCountUnchecked(org.apache.hadoop.hbase.TableName tableName)
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.