Class TestCompactingToCellFlatMapMemStore
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestDefaultMemStore
org.apache.hadoop.hbase.regionserver.TestCompactingMemStore
org.apache.hadoop.hbase.regionserver.TestCompactingToCellFlatMapMemStore
compacted memstore test case
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.regionserver.TestCompactingMemStore
TestCompactingMemStore.MyCompactingMemStore -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRule(package private) org.apache.hadoop.conf.Configurationprivate static final org.slf4j.Loggerfinal booleanFields inherited from class org.apache.hadoop.hbase.regionserver.TestCompactingMemStore
chunkCreator, region, regionServicesForStores, storeFields inherited from class org.apache.hadoop.hbase.regionserver.TestDefaultMemStore
FAMILY, memstore, mvcc, name, QUALIFIER_COUNT, ROW_COUNT, startSeqNum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate longaddRowsByKeysDataSize(org.apache.hadoop.hbase.regionserver.AbstractMemStore hmc, String[] keys) private voidaddRowsByKeysWith50Cols(org.apache.hadoop.hbase.regionserver.AbstractMemStore hmc, String[] keys) private longprivate longstatic Object[]data()voidsetUp()voidtearDown()voidTest big cell size after in memory compaction.voidvoidvoidvoidvoidvoidCellChunkMap Segment index requires all cell data to be written in the MSLAB Chunks.voidvoidCellChunkMap Segment index requires all cell data to be written in the MSLAB Chunks.voidCellChunkMap Segment index requires all cell data to be written in the MSLAB Chunks.voidvoidvoidprivate voidtestTimeRange(boolean isCompaction) voidvoidMethods inherited from class org.apache.hadoop.hbase.regionserver.TestCompactingMemStore
addRowsByKeys, addRowsByKeys, compactingSetUp, makeQualifier, testGet_memstoreAndSnapShot, testGetNextRow, testMagicCompaction3Buckets, testPuttingBackChunksWithOpeningPipelineScanner, testScanAcrossSnapshot2, testSnapshotting, testTimeOfOldestEdit, testUpdateToTimeOfOldestEdit, testUpsertMemstoreSizeMethods inherited from class org.apache.hadoop.hbase.regionserver.TestDefaultMemStore
addRows, addRows, assertScannerResults, checkShouldFlush, doScan, internalSetUp, main, tearDownClass, testBytesReadFromMemstore, testBytesReadFromMemstoreWithScanMetricsDisabled, testGetWithDelete, testGetWithDeleteColumn, testGetWithDeleteFamily, testKeepDeleteInmemstore, testMemstoreConcurrentControl, testMemstoreDeletesVisibilityWithSameKey, testMemstoreEditsVisibilityWithSameKey, testMultipleVersionsSimple, testPutSameCell, testPutSameKey, testReadOwnWritesUnderConcurrency, testRetainsDeleteColumn, testRetainsDeleteFamily, testRetainsDeleteVersion, testScanAcrossSnapshot, testShouldFlush, testShouldFlushMeta, verifyOneScanAcrossSnapshot2, verifyScanAcrossSnapshot2
-
Field Details
-
CLASS_RULE
-
LOG
-
toCellChunkMap
-
conf
org.apache.hadoop.conf.Configuration conf
-
-
Constructor Details
-
TestCompactingToCellFlatMapMemStore
-
-
Method Details
-
data
-
tearDown
- Overrides:
tearDownin classTestCompactingMemStore- Throws:
Exception
-
setUp
- Overrides:
setUpin classTestCompactingMemStore- Throws:
Exception
-
testCompaction1Bucket
- Overrides:
testCompaction1Bucketin classTestCompactingMemStore- Throws:
IOException
-
testCompaction2Buckets
- Overrides:
testCompaction2Bucketsin classTestCompactingMemStore- Throws:
IOException
-
testCompaction3Buckets
- Overrides:
testCompaction3Bucketsin classTestCompactingMemStore- Throws:
IOException
-
testMerging
- Throws:
IOException
-
testTimeRangeAfterCompaction
- Throws:
IOException
-
testTimeRangeAfterMerge
- Throws:
IOException
-
testTimeRange
- Throws:
IOException
-
testCountOfCellsAfterFlatteningByScan
- Throws:
IOException
-
testCountOfCellsAfterFlatteningByIterator
- Throws:
IOException
-
addRowsByKeysWith50Cols
private void addRowsByKeysWith50Cols(org.apache.hadoop.hbase.regionserver.AbstractMemStore hmc, String[] keys) -
testPuttingBackChunksWithOpeningScanner
- Overrides:
testPuttingBackChunksWithOpeningScannerin classTestCompactingMemStore- Throws:
IOException
-
testPuttingBackChunksAfterFlushing
- Overrides:
testPuttingBackChunksAfterFlushingin classTestCompactingMemStore- Throws:
IOException
-
testFlatteningToCellChunkMap
- Throws:
IOException
-
testFlatteningToBigCellChunkMap
CellChunkMap Segment index requires all cell data to be written in the MSLAB Chunks. Even though MSLAB is enabled, cells bigger than maxAlloc (even if smaller than the size of a chunk) are not written in the MSLAB Chunks. If such cells are found in the process of flattening into CellChunkMap (in-memory-flush) they need to be copied into MSLAB. testFlatteningToBigCellChunkMap checks that the process of flattening into CellChunkMap succeeds, even when such big cells are allocated.- Throws:
IOException
-
testFlatteningToJumboCellChunkMap
CellChunkMap Segment index requires all cell data to be written in the MSLAB Chunks. Even though MSLAB is enabled, cells bigger than the size of a chunk are not written in the MSLAB Chunks. If such cells are found in the process of flattening into CellChunkMap (in-memory-flush) they need to be copied into MSLAB. testFlatteningToJumboCellChunkMap checks that the process of flattening into CellChunkMap succeeds, even when such big cells are allocated.- Throws:
IOException
-
testForceCopyOfBigCellIntoImmutableSegment
CellChunkMap Segment index requires all cell data to be written in the MSLAB Chunks. Even though MSLAB is enabled, cells bigger than the size of a chunk are not written in the MSLAB Chunks. If such cells are found in the process of a merge they need to be copied into MSLAB. testForceCopyOfBigCellIntoImmutableSegment checks that the ImmutableMemStoreLAB's forceCopyOfBigCellInto does what it's supposed to do.- Throws:
IOException
-
testBigCellSizeAfterInMemoryCompaction
Test big cell size after in memory compaction. (HBASE-26467)- Throws:
IOException
-
addRowsByKeysDataSize
private long addRowsByKeysDataSize(org.apache.hadoop.hbase.regionserver.AbstractMemStore hmc, String[] keys) -
cellBeforeFlushSize
-
cellAfterFlushSize
-