public class TestDateTieredCompactionPolicy extends AbstractTestDateTieredCompactionPolicy
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
Constructor and Description |
---|
TestDateTieredCompactionPolicy() |
Modifier and Type | Method and Description |
---|---|
void |
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
|
protected void |
config()
setup config values necessary for store
|
void |
incomingWindow()
Test for incoming window
|
void |
majorCompation()
Major compaction
|
void |
negativeEpochtime()
Negative epoch time
|
void |
negativeForMajor()
Major compaction with negative numbers
|
void |
NewerThanIncomingWindow()
Test for file newer than incoming window
|
void |
NoT2()
If there is no T1 window, we don't build T2
|
void |
NotIncomingWindow()
Not enough files in incoming window
|
void |
olderThanMaxAge()
Older than now(161) - maxAge(100)
|
void |
OnUpperBoundOfIncomingWindow()
Test for file on the upper bound of incoming window
|
void |
outOfOrder()
Out-of-order data
|
void |
RatioT0()
Apply exploring logic on non-incoming window
|
void |
RatioT0Next()
The next compaction call after testTieredCompactionRatioT0 is compacted
|
void |
RatioT2()
Also apply ratio-based logic on t2 window
|
void |
T1() |
compactEquals, sfCreate
compactEquals, compactEquals, compactEquals, getSizes, initialize, setUp, sfCreate, sfCreate, sfCreate, sfCreate, tearDown, toArrayList
public static final HBaseClassTestRule CLASS_RULE
public TestDateTieredCompactionPolicy()
protected void config()
TestCompactionPolicy
config
in class TestCompactionPolicy
public void incomingWindow() throws IOException
IOException
- with errorpublic void NotIncomingWindow() throws IOException
IOException
- with errorpublic void OnUpperBoundOfIncomingWindow() throws IOException
IOException
- with errorpublic void NewerThanIncomingWindow() throws IOException
IOException
- with errorpublic void NoT2() throws IOException
IOException
- with errorpublic void T1() throws IOException
IOException
public void RatioT0() throws IOException
IOException
- with errorpublic void RatioT2() throws IOException
IOException
- with errorpublic void RatioT0Next() throws IOException
IOException
- with errorpublic void olderThanMaxAge() throws IOException
IOException
- with errorpublic void outOfOrder() throws IOException
IOException
- with errorpublic void negativeEpochtime() throws IOException
IOException
- with errorpublic void majorCompation() throws IOException
IOException
- with errorpublic void checkMinMaxTimestampSameBoundary() throws IOException
IOException
public void negativeForMajor() throws IOException
IOException
- with errorCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.