Class MajorCompactionTestBase
java.lang.Object
org.apache.hadoop.hbase.regionserver.MajorCompactionTestBase
- Direct Known Subclasses:
TestMajorCompaction,TestMajorCompactionDataBlockEncoding,TestMajorCompactionRequest,TestMajorCompactionWithDeletes,TestTimeBasedMajorCompaction
Base class for testing major compactions
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final byte[]protected static final byte[]protected intprotected final Stringprotected org.apache.hadoop.conf.Configurationprotected org.apache.hadoop.hbase.client.TableDescriptorprivate static final org.slf4j.Loggerprotected static final longprotected Stringprotected org.apache.hadoop.hbase.regionserver.HRegionprotected byte[]protected final byte[]protected byte[]protected static final HBaseTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate intcount()protected final voidcreateSmallerStoreFile(org.apache.hadoop.hbase.regionserver.HRegion region) protected final voidcreateStoreFile(org.apache.hadoop.hbase.regionserver.HRegion region) protected final voidcreateStoreFile(org.apache.hadoop.hbase.regionserver.HRegion region, String family) protected final voidstatic Stream<org.junit.jupiter.params.provider.Arguments>voidsetUp(org.junit.jupiter.api.TestInfo testInfo) voidtearDown()private 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
-
MajorCompactionTestBase
constructor
-
-
Method Details
-
parameters
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
majorCompaction
- Throws:
Exception
-
verifyCounts
- Throws:
Exception
-
count
- Throws:
IOException
-
createStoreFile
protected final void createStoreFile(org.apache.hadoop.hbase.regionserver.HRegion region) throws IOException - Throws:
IOException
-
createStoreFile
protected final void createStoreFile(org.apache.hadoop.hbase.regionserver.HRegion region, String family) throws IOException - Throws:
IOException
-
createSmallerStoreFile
protected final void createSmallerStoreFile(org.apache.hadoop.hbase.regionserver.HRegion region) throws IOException - Throws:
IOException
-