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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 arrayprotected void
config()
setup config values necessary for storevoid
Test for incoming windowvoid
Major compactionvoid
Negative epoch timevoid
Major compaction with negative numbersvoid
Test for file newer than incoming windowvoid
NoT2()
If there is no T1 window, we don't build T2void
Not enough files in incoming windowvoid
Older than now(161) - maxAge(100)void
Test for file on the upper bound of incoming windowvoid
Out-of-order datavoid
RatioT0()
Apply exploring logic on non-incoming windowvoid
The next compaction call after testTieredCompactionRatioT0 is compactedvoid
RatioT2()
Also apply ratio-based logic on t2 windowvoid
T1()
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
-
-
Constructor Details
-
TestDateTieredCompactionPolicy
public TestDateTieredCompactionPolicy()
-
-
Method Details
-
config
Description copied from class:TestCompactionPolicy
setup config values necessary for store- Overrides:
config
in 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
-