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 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 double |
getRegionSizeMB(org.apache.hadoop.hbase.master.MasterServices masterServices,
org.apache.hadoop.hbase.client.RegionInfo regionInfo) |
void |
testHonorsNormalizerSwitch() |
void |
testHonorsNormalizerTableSetting()
Test that disabling normalizer via table configuration is honored.
|
void |
testRegionNormalizationMerge() |
(package private) void |
testRegionNormalizationSplit(boolean limitedByQuota) |
void |
testRegionNormalizationSplitWithoutQuotaLimit() |
void |
testRegionNormalizationSplitWithQuotaLimit() |
private static void |
waitForSkippedSplits(org.apache.hadoop.hbase.master.HMaster master,
long existingSkippedSplitCount) |
private static void |
waitForTableMerge(org.apache.hadoop.hbase.TableName tableName,
int targetRegionCount) |
private static void |
waitForTableRegionCount(org.apache.hadoop.hbase.TableName tableName,
int targetRegionCount) |
private static void |
waitForTableSplit(org.apache.hadoop.hbase.TableName tableName,
int targetRegionCount) |
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 before() throws IOException
IOExceptionpublic void testHonorsNormalizerSwitch() throws IOException
IOExceptionpublic 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
Exceptionprivate static org.apache.hadoop.hbase.TableName buildTableNameForQuotaTest(String methodName) throws IOException
IOExceptionprivate static void waitForSkippedSplits(org.apache.hadoop.hbase.master.HMaster master, long existingSkippedSplitCount) throws Exception
Exceptionprivate static void waitForTableRegionCount(org.apache.hadoop.hbase.TableName tableName, int targetRegionCount) throws IOException
IOExceptionprivate static void waitForTableSplit(org.apache.hadoop.hbase.TableName tableName, int targetRegionCount) throws IOException
IOExceptionprivate static void waitForTableMerge(org.apache.hadoop.hbase.TableName tableName, int targetRegionCount) throws IOException
IOExceptionprivate 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 IOException
IOExceptionprivate static int createTableBegsMerge(org.apache.hadoop.hbase.TableName tableName) throws IOException
IOExceptionprivate static void dropIfExists(org.apache.hadoop.hbase.TableName tableName) throws IOException
IOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.