Package org.apache.hadoop.hbase.mob
Class TestExpiredMobFileCleaner
java.lang.Object
org.apache.hadoop.hbase.mob.TestExpiredMobFileCleaner
-
Field Summary
Modifier and TypeFieldDescriptionprivate static org.apache.hadoop.hbase.client.Admin
static final HBaseClassTestRule
private static final String
private static final byte[]
private static final byte[]
private static final byte[]
private static final byte[]
private static org.apache.hadoop.hbase.client.BufferedMutator
private static final org.apache.hadoop.hbase.TableName
private static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
init()
private byte[]
makeDummyData
(int size) private void
modifyColumnExpiryDays
(int expireDays) private void
putKVAndFlush
(org.apache.hadoop.hbase.client.BufferedMutator table, byte[] row, byte[] value, long ts) private int
void
setUp()
static void
void
tearDown()
static void
void
Creates a 3 day old hfile and an 1 day old hfile then sets expiry to 2 days.
-
Field Details
-
CLASS_RULE
-
TEST_UTIL
-
tableName
-
family
- See Also:
-
row1
-
row2
-
row3
-
qf
-
table
-
admin
-
-
Constructor Details
-
TestExpiredMobFileCleaner
public TestExpiredMobFileCleaner()
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
init
- Throws:
Exception
-
modifyColumnExpiryDays
- Throws:
Exception
-
putKVAndFlush
private void putKVAndFlush(org.apache.hadoop.hbase.client.BufferedMutator table, byte[] row, byte[] value, long ts) throws Exception - Throws:
Exception
-
testCleaner
Creates a 3 day old hfile and an 1 day old hfile then sets expiry to 2 days. Verifies that the 3 day old hfile is removed but the 1 day one is still present after the expiry based cleaner is run.- Throws:
Exception
-
secondsOfDay
-
makeDummyData
-