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
Exception
public static void afterAllTests() throws Exception
Exception
public void testHonorsNormalizerSwitch() throws Exception
Exception
public void testHonorsNormalizerTableSetting() throws Exception
Exception
public void testRegionNormalizationSplitWithoutQuotaLimit() throws Exception
Exception
public void testRegionNormalizationSplitWithQuotaLimit() throws Exception
Exception
void testRegionNormalizationSplit(boolean limitedByQuota) throws Exception
Exception
public void testRegionNormalizationMerge() throws Exception
Exception
public void testHonorsNamespaceFilter() throws Exception
Exception
public void testHonorsPatternFilter() throws Exception
Exception
public void testHonorsNameFilter() throws Exception
Exception
public void testTargetOfSplitAndMerge() throws Exception
Exception
private static org.apache.hadoop.hbase.TableName buildTableNameForQuotaTest(String methodName) throws Exception
Exception
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 List<org.apache.hadoop.hbase.regionserver.HRegion> generateTestData(org.apache.hadoop.hbase.TableName tableName, int... regionSizesMb) throws IOException
IOException
private static void generateTestData(org.apache.hadoop.hbase.regionserver.Region region, int numRows) throws IOException
IOException
private 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
Exception
private static int createTableBegsMerge(org.apache.hadoop.hbase.TableName tableName) throws Exception
Exception
private static int createTableTargetOfSplitAndMerge(org.apache.hadoop.hbase.TableName tableName) throws Exception
Exception
private static void dropIfExists(org.apache.hadoop.hbase.TableName tableName) throws Exception
Exception
private static int getRegionCount(org.apache.hadoop.hbase.TableName tableName) throws IOException
IOException
private static int getRegionCountUnchecked(org.apache.hadoop.hbase.TableName tableName)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.