Class TestRegionSplitPolicy
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestRegionSplitPolicy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private org.apache.hadoop.conf.Configuration
private org.apache.hadoop.hbase.regionserver.HRegion
private List<org.apache.hadoop.hbase.regionserver.HStore>
private static final org.apache.hadoop.hbase.TableName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
assertWithinJitter
(long maxSplitSize, long sizeToCheck) private void
doConstantSizePolicyTests
(org.apache.hadoop.hbase.regionserver.ConstantSizeRegionSplitPolicy policy) Run through tests for a ConstantSizeRegionSplitPolicyvoid
void
void
void
void
void
Test setting up a customized split policyvoid
void
void
void
void
void
-
Field Details
-
CLASS_RULE
-
conf
-
mockRegion
-
stores
-
TABLENAME
-
-
Constructor Details
-
TestRegionSplitPolicy
public TestRegionSplitPolicy()
-
-
Method Details
-
setupMocks
-
testForceSplitRegionWithReference
- Throws:
IOException
-
testIncreasingToUpperBoundRegionSplitPolicy
- Throws:
IOException
-
testSteppingSplitPolicyWithRegionReplication
- Throws:
IOException
-
testIsExceedSize
- Throws:
IOException
-
testBusyRegionSplitPolicy
- Throws:
Exception
-
assertWithinJitter
-
testCreateDefault
- Throws:
IOException
-
testCustomPolicy
Test setting up a customized split policy- Throws:
IOException
-
testConstantSizePolicy
- Throws:
IOException
-
doConstantSizePolicyTests
private void doConstantSizePolicyTests(org.apache.hadoop.hbase.regionserver.ConstantSizeRegionSplitPolicy policy) Run through tests for a ConstantSizeRegionSplitPolicy -
testGetSplitPoint
- Throws:
IOException
-
testDelimitedKeyPrefixRegionSplitPolicy
- Throws:
IOException
-
testConstantSizePolicyWithJitter
- Throws:
IOException
-