Class TestDateTieredCompactionPolicyHeterogeneousStorage
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestCompactionPolicy
org.apache.hadoop.hbase.regionserver.AbstractTestDateTieredCompactionPolicy
org.apache.hadoop.hbase.regionserver.TestDateTieredCompactionPolicyHeterogeneousStorage
public class TestDateTieredCompactionPolicyHeterogeneousStorage
extends AbstractTestDateTieredCompactionPolicy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
static final String
static final String
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
config()
setup config values necessary for storevoid
Test for not incoming window.void
Test for minor compaction of incoming window.void
Test for Major compaction.void
Test for not incoming window.void
Test for not incoming window.void
Test for not incoming window.Methods inherited from class org.apache.hadoop.hbase.regionserver.AbstractTestDateTieredCompactionPolicy
compactEquals, compactEqualsStoragePolicy, sfCreate
Methods inherited from class org.apache.hadoop.hbase.regionserver.TestCompactionPolicy
compactEquals, compactEquals, compactEquals, getSizes, initialize, setUp, sfCreate, sfCreate, sfCreate, sfCreate, tearDown, toArrayList
-
Field Details
-
CLASS_RULE
-
HOT_WINDOW_SP
- See Also:
-
WARM_WINDOW_SP
- See Also:
-
COLD_WINDOW_SP
- See Also:
-
-
Constructor Details
-
TestDateTieredCompactionPolicyHeterogeneousStorage
-
-
Method Details
-
config
Description copied from class:TestCompactionPolicy
setup config values necessary for store- Overrides:
config
in classTestCompactionPolicy
-
testIncomingWindowHot
Test for minor compaction of incoming window. Incoming window start ts >= now - hot age. So it is HOT window, will use HOT_WINDOW_SP.- Throws:
IOException
- with error
-
testNotIncomingWindowWarm
Test for not incoming window. now - hot age > window start >= now - warm age, so this window and is WARM window, will use WARM_WINDOW_SP- Throws:
IOException
- with error
-
testNotIncomingWindowAndIsHot
Test for not incoming window. this window start ts >= ow - hot age, So this incoming window and is HOT window. Use HOT_WINDOW_SP- Throws:
IOException
- with error
-
testColdWindow
Test for not incoming window. COLD window start timestamp < now - warm age, so use COLD_WINDOW_SP- Throws:
IOException
- with error
-
testRatioT0
Test for not incoming window. but not all hfiles will be selected to compact. Apply exploring logic on non-incoming window. More than one hfile left in this window. this means minor compact single out is true. boundaries only contains Long.MIN_VALUE- Throws:
IOException
- with error
-
testMajorCompation
Test for Major compaction. It will compact all files and create multi output files with different window storage policy.- Throws:
IOException
- with error
-