Package org.apache.hadoop.hbase.mob
Class TestMobFileCleanupUtil
java.lang.Object
org.apache.hadoop.hbase.mob.TestMobFileCleanupUtil
Mob file cleaner chore test. 1. Creates MOB table 2. Load MOB data and flushes it N times 3. Runs
 major MOB compaction (N MOB files go to archive) 4. Verifies that number of MOB files in a mob
 directory is N+1 5. Waits for a period of time larger than minimum age to archive 6. Runs Mob
 cleaner chore 7 Verifies that number of MOB files in a mob directory is 1.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate org.apache.hadoop.hbase.client.Adminstatic final HBaseClassTestRuleprivate org.apache.hadoop.conf.Configurationprivate static final byte[]private org.apache.hadoop.hbase.client.ColumnFamilyDescriptorprivate static final Stringprivate HBaseTestingUtilprivate static final org.slf4j.Loggerprivate longprivate static final longprivate static final byte[]private static final byte[]private org.apache.hadoop.hbase.client.Tableprivate org.apache.hadoop.hbase.client.TableDescriptor
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Field Details- 
LOG
- 
CLASS_RULE
- 
HTU
- 
famStr- See Also:
 
- 
fam
- 
qualifier
- 
mobLen- See Also:
 
- 
mobVal
- 
conf
- 
tableDescriptor
- 
familyDescriptor
- 
admin
- 
table
- 
minAgeToArchive
 
- 
- 
Constructor Details- 
TestMobFileCleanupUtilpublic TestMobFileCleanupUtil()
 
- 
- 
Method Details- 
setUp- Throws:
- Exception
 
- 
initConf
- 
loadData
- 
tearDown- Throws:
- Exception
 
- 
testMobFileCleanerChore- Throws:
- InterruptedException
- IOException
 
- 
getNumberOfMobFilesprivate long getNumberOfMobFiles(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.TableName tableName, String family) throws IOException - Throws:
- IOException
 
- 
scanTable
 
-