Class TestMajorCompaction
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestMajorCompaction
@Tag("org.apache.hadoop.hbase.testclassification.RegionServerTests") @Tag("org.apache.hadoop.hbase.testclassification.LargeTests")
public class TestMajorCompaction
extends Object
Test major compactions
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final byte[]private static final byte[]private intprivate final Stringprotected org.apache.hadoop.conf.Configurationprivate org.apache.hadoop.hbase.client.TableDescriptorprivate static final org.slf4j.Loggerprivate static final longprivate Stringprivate org.apache.hadoop.hbase.regionserver.HRegionprivate byte[]private final byte[]private byte[]private static final HBaseTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier 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) private voidvoidmajorCompactionWithDataBlockEncoding(boolean inCacheOnly) static Stream<org.junit.jupiter.params.provider.Arguments>voidsetUp(org.junit.jupiter.api.TestInfo testInfo) 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
-
LOG
-
UTIL
-
conf
-
name
-
compType
-
r
-
htd
-
COLUMN_FAMILY
-
STARTROW
-
COLUMN_FAMILY_TEXT
-
compactionThreshold
-
secondRowBytes
-
thirdRowBytes
-
MAX_FILES_TO_COMPACT
- See Also:
-
-
Constructor Details
-
TestMajorCompaction
constructor
-
-
Method Details
-
parameters
-
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
-