public class TestDateTieredCompactionPolicy extends TestCompactionPolicy
| Constructor and Description |
|---|
TestDateTieredCompactionPolicy() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
config()
setup config values necessary for store
|
void |
incomingWindow()
Test for incoming window
|
void |
majorCompation()
Major compaction
|
void |
maxValuesForMajor()
Major compaction with maximum values
|
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() |
initialize, setUp, tearDownprotected void config()
TestCompactionPolicyconfig in class TestCompactionPolicypublic 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
IOExceptionpublic 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 negativeForMajor()
throws IOException
IOException - with errorpublic void maxValuesForMajor()
throws IOException
IOException - with error