Package org.apache.hadoop.hbase.mob
Class TestRSMobFileCleanerChore
java.lang.Object
org.apache.hadoop.hbase.mob.TestRSMobFileCleanerChore
Mob file cleaner chore test. 1. Creates MOB table 2. Load MOB data and flushes it N times 3. Runs
major MOB compaction 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
every old MOB file referenced from current RS was archived
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.hadoop.hbase.client.Adminprivate org.apache.hadoop.hbase.mob.RSMobFileCleanerChorestatic 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate longgetNumberOfMobFiles(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.TableName tableName, String family) private voidinitConf()private voidloadData(org.apache.hadoop.hbase.client.Table t, int start, int num) private longvoidsetUp()voidtearDown()voidvoid
-
Field Details
-
LOG
-
CLASS_RULE
-
HTU
-
famStr
- See Also:
-
fam
-
qualifier
-
mobLen
- See Also:
-
mobVal
-
conf
-
tableDescriptor
-
familyDescriptor
-
admin
-
table
-
chore
-
minAgeToArchive
-
-
Constructor Details
-
TestRSMobFileCleanerChore
public TestRSMobFileCleanerChore()
-
-
Method Details
-
setUp
- Throws:
Exception
-
initConf
-
loadData
-
tearDown
- Throws:
Exception
-
testMobFileCleanerChore
- Throws:
InterruptedExceptionIOException
-
testCleaningAndStoreFileReaderCreatedByOtherThreads
public void testCleaningAndStoreFileReaderCreatedByOtherThreads() throws IOException, InterruptedException- Throws:
IOExceptionInterruptedException
-
getNumberOfMobFiles
private long getNumberOfMobFiles(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.TableName tableName, String family) throws IOException - Throws:
IOException
-
scanTable
-