Class TestDateTieredCompactionPolicy
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestCompactionPolicy
org.apache.hadoop.hbase.regionserver.AbstractTestDateTieredCompactionPolicy
org.apache.hadoop.hbase.regionserver.TestDateTieredCompactionPolicy
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidMajor Compaction to check min max timestamp falling in the same window and also to check boundary condition in which case binary sort gives insertion point as length of the arrayprotected voidconfig()setup config values necessary for storevoidTest for incoming windowvoidMajor compactionvoidNegative epoch timevoidMajor compaction with negative numbersvoidTest for file newer than incoming windowvoidNoT2()If there is no T1 window, we don't build T2voidNot enough files in incoming windowvoidOlder than now(161) - maxAge(100)voidTest for file on the upper bound of incoming windowvoidOut-of-order datavoidRatioT0()Apply exploring logic on non-incoming windowvoidThe next compaction call after testTieredCompactionRatioT0 is compactedvoidRatioT2()Also apply ratio-based logic on t2 windowvoidT1()Methods inherited from class org.apache.hadoop.hbase.regionserver.AbstractTestDateTieredCompactionPolicy
compactEquals, compactEqualsStoragePolicy, sfCreateMethods 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
-
-
Constructor Details
-
TestDateTieredCompactionPolicy
public TestDateTieredCompactionPolicy()
-
-
Method Details
-
config
Description copied from class:TestCompactionPolicysetup config values necessary for store- Overrides:
configin classTestCompactionPolicy
-
incomingWindow
Test for incoming window- Throws:
IOException- with error
-
NotIncomingWindow
Not enough files in incoming window- Throws:
IOException- with error
-
OnUpperBoundOfIncomingWindow
Test for file on the upper bound of incoming window- Throws:
IOException- with error
-
NewerThanIncomingWindow
Test for file newer than incoming window- Throws:
IOException- with error
-
NoT2
If there is no T1 window, we don't build T2- Throws:
IOException- with error
-
T1
- Throws:
IOException
-
RatioT0
Apply exploring logic on non-incoming window- Throws:
IOException- with error
-
RatioT2
Also apply ratio-based logic on t2 window- Throws:
IOException- with error
-
RatioT0Next
The next compaction call after testTieredCompactionRatioT0 is compacted- Throws:
IOException- with error
-
olderThanMaxAge
Older than now(161) - maxAge(100)- Throws:
IOException- with error
-
outOfOrder
Out-of-order data- Throws:
IOException- with error
-
negativeEpochtime
Negative epoch time- Throws:
IOException- with error
-
majorCompation
Major compaction- Throws:
IOException- with error
-
checkMinMaxTimestampSameBoundary
Major Compaction to check min max timestamp falling in the same window and also to check boundary condition in which case binary sort gives insertion point as length of the array- Throws:
IOException
-
negativeForMajor
Major compaction with negative numbers- Throws:
IOException- with error
-