Package org.apache.hadoop.hbase.mob
Class TestMobCompactionOptRegionBatchMode
java.lang.Object
org.apache.hadoop.hbase.mob.TestMobCompactionWithDefaults
org.apache.hadoop.hbase.mob.TestMobCompactionOptRegionBatchMode
Mob file compaction chore in a generational batch mode test. 1. Enables batch mode for regular
MOB compaction, Sets batch size to 7 regions. Enables generational mode. 2. Disables periodic MOB
compactions, sets minimum age to archive to 10 sec 3. Creates MOB table with 20 regions 4. Loads
MOB data (randomized keys, 1000 rows), flushes data. 5. Repeats 4. two more times 6. Verifies
that we have 20 *3 = 60 mob files (equals to number of regions x 3) 7. Runs major MOB compaction.
8. Verifies that number of MOB files in a mob directory is 20 x4 = 80 9. Waits for a period of
time larger than minimum age to archive 10. Runs Mob cleaner chore 11 Verifies that number of MOB
files in a mob directory is 20. 12 Runs scanner and checks all 3 * 1000 rows.
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
static final HBaseClassTestRule
private org.apache.hadoop.hbase.mob.MobFileCompactionChore
private static final org.slf4j.Logger
Fields inherited from class org.apache.hadoop.hbase.mob.TestMobCompactionWithDefaults
admin, conf, fam, familyDescriptor, famStr, HTU, minAgeToArchive, mobLen, mobVal, numRegions, qualifier, rows, table, tableDescriptor, test, useFileBasedSFT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected String
protected void
mobCompactImpl
(org.apache.hadoop.hbase.client.TableDescriptor tableDescriptor, org.apache.hadoop.hbase.client.ColumnFamilyDescriptor familyDescriptor) Call the API for compaction specific to the test set.void
setUp()
Methods inherited from class org.apache.hadoop.hbase.mob.TestMobCompactionWithDefaults
baseTestMobFileCompaction, cleanupAndVerifyCounts, data, disableCompactions, enableCompactions, getNumberOfMobFiles, htuStart, loadAndFlushThreeTimes, mobCompact, scanTable, tearDown, testMobFileCompactionAfterSnapshotClone, testMobFileCompactionAfterSnapshotCloneAndFlush, waitUntilCompactionIsComplete
-
Field Details
-
LOG
-
CLASS_RULE
-
batchSize
- See Also:
-
compactionChore
-
-
Constructor Details
-
TestMobCompactionOptRegionBatchMode
-
-
Method Details
-
setUp
- Overrides:
setUp
in classTestMobCompactionWithDefaults
- Throws:
Exception
-
additonalConfigSetup
- Overrides:
additonalConfigSetup
in classTestMobCompactionWithDefaults
-
mobCompactImpl
protected void mobCompactImpl(org.apache.hadoop.hbase.client.TableDescriptor tableDescriptor, org.apache.hadoop.hbase.client.ColumnFamilyDescriptor familyDescriptor) throws IOException, InterruptedException Description copied from class:TestMobCompactionWithDefaults
Call the API for compaction specific to the test set. should not wait for compactions to finish. may assume compactions are enabled when called.- Overrides:
mobCompactImpl
in classTestMobCompactionWithDefaults
- Throws:
IOException
InterruptedException
-
description
- Overrides:
description
in classTestMobCompactionWithDefaults
-