Package org.apache.hadoop.hbase.mob
Class TestExpiredMobFileCleanerChore
java.lang.Object
org.apache.hadoop.hbase.mob.TestExpiredMobFileCleanerChore
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static org.apache.hadoop.hbase.client.Adminstatic final HBaseClassTestRuleprivate static final Stringprivate static org.apache.hadoop.hbase.mob.MobFileCleanerChoreprivate static final byte[]private static final byte[]private static final byte[]private static final byte[]private static org.apache.hadoop.hbase.client.BufferedMutatorprivate static org.apache.hadoop.hbase.client.BufferedMutatorprivate static final org.apache.hadoop.hbase.TableNameprivate static final org.apache.hadoop.hbase.TableNameprivate static final HBaseTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanUp()private static voidinit()private static byte[]makeDummyData(int size) private static voidmodifyColumnExpiryDays(int expireDays) private static voidputKVAndFlush(org.apache.hadoop.hbase.client.BufferedMutator table, byte[] row, byte[] value, long ts, org.apache.hadoop.hbase.TableName tableName) private static intstatic voidsetUp()static voidtearDown()private static voidCreates a 3 day old hfile and an 1 day old hfile then sets expiry to 2 days.voidvoid
-
Field Details
-
CLASS_RULE
-
TEST_UTIL
-
tableName
-
tableName2
-
family
- See Also:
-
row1
-
row2
-
row3
-
qf
-
table
-
admin
-
table2
-
mobFileCleanerChore
-
-
Constructor Details
-
TestExpiredMobFileCleanerChore
public TestExpiredMobFileCleanerChore()
-
-
Method Details
-
setUp
- Throws:
Exception
-
cleanUp
- Throws:
IOException
-
tearDown
- Throws:
Exception
-
testCleanerSingleThread
- Throws:
Exception
-
testCleanerMultiThread
- Throws:
Exception
-
init
- Throws:
Exception
-
modifyColumnExpiryDays
- Throws:
Exception
-
putKVAndFlush
private static void putKVAndFlush(org.apache.hadoop.hbase.client.BufferedMutator table, byte[] row, byte[] value, long ts, org.apache.hadoop.hbase.TableName tableName) throws Exception - Throws:
Exception
-
testCleanerInternal
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
-