Class TestMajorCompaction
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestMajorCompaction
Test major compactions
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static final byte[]private static final byte[]private intprotected org.apache.hadoop.conf.Configurationprivate org.apache.hadoop.hbase.client.TableDescriptorprivate static final org.slf4j.Loggerprivate static final longorg.junit.rules.TestNameprivate org.apache.hadoop.hbase.regionserver.HRegionprivate byte[]private final byte[]private byte[]private static final HBaseTestingUtil
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate intcount()private voidcreateSmallerStoreFile(org.apache.hadoop.hbase.regionserver.HRegion region) private voidcreateStoreFile(org.apache.hadoop.hbase.regionserver.HRegion region) private voidcreateStoreFile(org.apache.hadoop.hbase.regionserver.HRegion region, String family) static Object[]data()private voidvoidmajorCompactionWithDataBlockEncoding(boolean inCacheOnly) voidsetUp()voidtearDown()voidvoidvoidTest that on a major compaction, if all cells are expired or deleted, then we'll end up with no product.voidTest that on a major compaction, if all cells are expired or deleted, then we'll end up with no product.private voidtestMajorCompactingWithDeletes(org.apache.hadoop.hbase.KeepDeletedCells keepDeletedCells) voidTest that on a major compaction,Deleted cells are retained if keep deleted cells is set to truevoidRun compaction and flushing memstore Assert deletes get cleaned up.voidTest for HBASE-5920 - Test user requested major compactions always occurringvoidvoidTest for HBASE-5920private voidverifyCounts(int countRow1, int countRow2) 
- 
Field Details- 
CLASS_RULE
- 
name
- 
LOG
- 
UTIL
- 
conf
- 
r
- 
htd
- 
COLUMN_FAMILY
- 
STARTROW
- 
COLUMN_FAMILY_TEXT
- 
compactionThreshold
- 
secondRowBytes
- 
thirdRowBytes
- 
MAX_FILES_TO_COMPACT- See Also:
 
 
- 
- 
Constructor Details- 
TestMajorCompactionconstructor
 
- 
- 
Method Details- 
data
- 
setUp- Throws:
- Exception
 
- 
tearDown- Throws:
- Exception
 
- 
testMajorCompactingToNoOutputTest that on a major compaction, if all cells are expired or deleted, then we'll end up with no product. Make sure scanner over region returns right answer in this case - and that it just basically works.- Throws:
- IOException- exception encountered
 
- 
testMajorCompactingWithKeepDeletedCellsTest that on a major compaction,Deleted cells are retained if keep deleted cells is set to true- Throws:
- IOException- exception encountered
 
- 
testMajorCompactionRun compaction and flushing memstore Assert deletes get cleaned up.- Throws:
- Exception
 
- 
testDataBlockEncodingInCacheOnly- Throws:
- Exception
 
- 
testDataBlockEncodingEverywhere- Throws:
- Exception
 
- 
majorCompactionWithDataBlockEncoding- Throws:
- Exception
 
- 
majorCompaction- Throws:
- Exception
 
- 
testTimeBasedMajorCompaction- Throws:
- Exception
 
- 
verifyCounts- Throws:
- Exception
 
- 
count- Throws:
- IOException
 
- 
createStoreFileprivate void createStoreFile(org.apache.hadoop.hbase.regionserver.HRegion region) throws IOException - Throws:
- IOException
 
- 
createStoreFileprivate void createStoreFile(org.apache.hadoop.hbase.regionserver.HRegion region, String family) throws IOException - Throws:
- IOException
 
- 
createSmallerStoreFileprivate void createSmallerStoreFile(org.apache.hadoop.hbase.regionserver.HRegion region) throws IOException - Throws:
- IOException
 
- 
testNonUserMajorCompactionRequestTest for HBASE-5920 - Test user requested major compactions always occurring- Throws:
- Exception
 
- 
testUserMajorCompactionRequestTest for HBASE-5920- Throws:
- IOException
 
- 
testMajorCompactingToNoOutputWithReverseScanTest that on a major compaction, if all cells are expired or deleted, then we'll end up with no product. Make sure scanner over region returns right answer in this case - and that it just basically works.- Throws:
- IOException
 
- 
testMajorCompactingWithDeletesprivate void testMajorCompactingWithDeletes(org.apache.hadoop.hbase.KeepDeletedCells keepDeletedCells) throws IOException - Throws:
- IOException
 
 
-