public class TestRegionSplitPolicy extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private org.apache.hadoop.conf.Configuration |
conf |
private org.apache.hadoop.hbase.HTableDescriptor |
htd |
private org.apache.hadoop.hbase.regionserver.HRegion |
mockRegion |
org.junit.rules.TestName |
name |
private List<org.apache.hadoop.hbase.regionserver.HStore> |
stores |
private static org.apache.hadoop.hbase.TableName |
TABLENAME |
Constructor and Description |
---|
TestRegionSplitPolicy() |
Modifier and Type | Method and Description |
---|---|
private void |
assertWithinJitter(long maxSplitSize,
long sizeToCheck) |
private void |
doConstantSizePolicyTests(org.apache.hadoop.hbase.regionserver.ConstantSizeRegionSplitPolicy policy)
Run through tests for a ConstantSizeRegionSplitPolicy
|
void |
setupMocks() |
void |
testBusyRegionSplitPolicy() |
void |
testConstantSizePolicy() |
void |
testConstantSizePolicyWithJitter() |
void |
testCreateDefault() |
void |
testCustomPolicy()
Test setting up a customized split policy
|
void |
testDelimitedKeyPrefixRegionSplitPolicy() |
void |
testForceSplitRegionWithReference() |
void |
testGetSplitPoint() |
void |
testIncreasingToUpperBoundRegionSplitPolicy() |
public static final HBaseClassTestRule CLASS_RULE
private org.apache.hadoop.conf.Configuration conf
private org.apache.hadoop.hbase.HTableDescriptor htd
private org.apache.hadoop.hbase.regionserver.HRegion mockRegion
private static final org.apache.hadoop.hbase.TableName TABLENAME
public org.junit.rules.TestName name
public TestRegionSplitPolicy()
public void setupMocks()
public void testForceSplitRegionWithReference() throws IOException
IOException
public void testIncreasingToUpperBoundRegionSplitPolicy() throws IOException
IOException
public void testBusyRegionSplitPolicy() throws Exception
Exception
private void assertWithinJitter(long maxSplitSize, long sizeToCheck)
public void testCreateDefault() throws IOException
IOException
public void testCustomPolicy() throws IOException
IOException
public void testConstantSizePolicy() throws IOException
IOException
private void doConstantSizePolicyTests(org.apache.hadoop.hbase.regionserver.ConstantSizeRegionSplitPolicy policy)
policy
- public void testGetSplitPoint() throws IOException
IOException
public void testDelimitedKeyPrefixRegionSplitPolicy() throws IOException
IOException
public void testConstantSizePolicyWithJitter() throws IOException
IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.