Package org.apache.hadoop.hbase.mob
Class TestExpiredMobFileCleaner
java.lang.Object
org.apache.hadoop.hbase.mob.TestExpiredMobFileCleaner
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static org.apache.hadoop.hbase.client.Adminstatic final HBaseClassTestRuleprivate static final Stringprivate static final org.slf4j.Loggerprivate static final byte[]private static final byte[]private static final byte[]private static final byte[]private static org.apache.hadoop.hbase.client.BufferedMutatorprivate static final org.apache.hadoop.hbase.TableNameprivate static final HBaseTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidinit()private byte[]makeDummyData(int size) private voidmodifyColumnExpiryDays(int expireDays) private voidputKVAndFlush(org.apache.hadoop.hbase.client.BufferedMutator table, byte[] row, byte[] value, long ts) private intvoidsetUp()static voidvoidtearDown()static voidvoidCreates 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
-
LOG
-
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
-