Class TestMajorCompaction
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestMajorCompaction
Test major compactions
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final byte[]
private static final byte[]
private int
protected org.apache.hadoop.conf.Configuration
private org.apache.hadoop.hbase.HTableDescriptor
private static final org.slf4j.Logger
private static final long
org.junit.rules.TestName
private org.apache.hadoop.hbase.regionserver.HRegion
private byte[]
private final byte[]
private byte[]
private static final HBaseTestingUtility
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate int
count()
private void
createSmallerStoreFile
(org.apache.hadoop.hbase.regionserver.HRegion region) private void
createStoreFile
(org.apache.hadoop.hbase.regionserver.HRegion region) private void
createStoreFile
(org.apache.hadoop.hbase.regionserver.HRegion region, String family) static Object[]
data()
private void
void
majorCompactionWithDataBlockEncoding
(boolean inCacheOnly) void
setUp()
void
tearDown()
void
void
void
Test that on a major compaction, if all cells are expired or deleted, then we'll end up with no product.void
Test that on a major compaction, if all cells are expired or deleted, then we'll end up with no product.private void
testMajorCompactingWithDeletes
(org.apache.hadoop.hbase.KeepDeletedCells keepDeletedCells) void
Test that on a major compaction,Deleted cells are retained if keep deleted cells is set to truevoid
Run compaction and flushing memstore Assert deletes get cleaned up.void
Test for HBASE-5920 - Test user requested major compactions always occurringvoid
void
Test for HBASE-5920private void
verifyCounts
(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
-
TestMajorCompaction
constructor
-
-
Method Details
-
data
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
testMajorCompactingToNoOutput
Test 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
-
testMajorCompactingWithKeepDeletedCells
Test that on a major compaction,Deleted cells are retained if keep deleted cells is set to true- Throws:
IOException
- exception encountered
-
testMajorCompaction
Run 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
-
createStoreFile
private void createStoreFile(org.apache.hadoop.hbase.regionserver.HRegion region) throws IOException - Throws:
IOException
-
createStoreFile
private void createStoreFile(org.apache.hadoop.hbase.regionserver.HRegion region, String family) throws IOException - Throws:
IOException
-
createSmallerStoreFile
private void createSmallerStoreFile(org.apache.hadoop.hbase.regionserver.HRegion region) throws IOException - Throws:
IOException
-
testNonUserMajorCompactionRequest
Test for HBASE-5920 - Test user requested major compactions always occurring- Throws:
Exception
-
testUserMajorCompactionRequest
Test for HBASE-5920- Throws:
IOException
-
testMajorCompactingToNoOutputWithReverseScan
Test 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
-
testMajorCompactingWithDeletes
private void testMajorCompactingWithDeletes(org.apache.hadoop.hbase.KeepDeletedCells keepDeletedCells) throws IOException - Throws:
IOException
-