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
Modifier and TypeFieldDescriptionprivate org.apache.hadoop.hbase.client.Admin
private org.apache.hadoop.hbase.mob.RSMobFileCleanerChore
static final HBaseClassTestRule
private org.apache.hadoop.conf.Configuration
private static final byte[]
private org.apache.hadoop.hbase.client.ColumnFamilyDescriptor
private static final String
private HBaseTestingUtil
private static final org.slf4j.Logger
private long
private static final long
private static final byte[]
private static final byte[]
private org.apache.hadoop.hbase.client.Table
private org.apache.hadoop.hbase.client.TableDescriptor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate long
getNumberOfMobFiles
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.TableName tableName, String family) private void
initConf()
private void
loadData
(org.apache.hadoop.hbase.client.Table t, int start, int num) private long
void
setUp()
void
tearDown()
void
void
-
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:
InterruptedException
IOException
-
testCleaningAndStoreFileReaderCreatedByOtherThreads
public void testCleaningAndStoreFileReaderCreatedByOtherThreads() throws IOException, InterruptedException- Throws:
IOException
InterruptedException
-
getNumberOfMobFiles
private long getNumberOfMobFiles(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.TableName tableName, String family) throws IOException - Throws:
IOException
-
scanTable
-