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
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
(package private) org.apache.hadoop.conf.Configuration
private static final org.slf4j.Logger
final boolean
Fields inherited from class org.apache.hadoop.hbase.regionserver.TestCompactingMemStore
chunkCreator, region, regionServicesForStores, store
Fields inherited from class org.apache.hadoop.hbase.regionserver.TestDefaultMemStore
FAMILY, memstore, mvcc, name, QUALIFIER_COUNT, ROW_COUNT, startSeqNum
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate long
addRowsByKeysDataSize
(org.apache.hadoop.hbase.regionserver.AbstractMemStore hmc, String[] keys) private void
addRowsByKeysWith50Cols
(org.apache.hadoop.hbase.regionserver.AbstractMemStore hmc, String[] keys) private long
private long
static Object[]
data()
void
setUp()
void
tearDown()
void
Test big cell size after in memory compaction.void
void
void
void
void
void
CellChunkMap Segment index requires all cell data to be written in the MSLAB Chunks.void
void
CellChunkMap Segment index requires all cell data to be written in the MSLAB Chunks.void
CellChunkMap Segment index requires all cell data to be written in the MSLAB Chunks.void
void
void
private void
testTimeRange
(boolean isCompaction) void
void
Methods inherited from class org.apache.hadoop.hbase.regionserver.TestCompactingMemStore
addRowsByKeys, addRowsByKeys, compactingSetUp, makeQualifier, testGet_memstoreAndSnapShot, testGetNextRow, testMagicCompaction3Buckets, testPuttingBackChunksWithOpeningPipelineScanner, testScanAcrossSnapshot2, testSnapshotting, testTimeOfOldestEdit, testUpdateToTimeOfOldestEdit, testUpsertMemstoreSize
Methods inherited from class org.apache.hadoop.hbase.regionserver.TestDefaultMemStore
addRows, addRows, assertScannerResults, checkShouldFlush, doScan, internalSetUp, main, tearDownClass, 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:
tearDown
in classTestCompactingMemStore
- Throws:
Exception
-
setUp
- Overrides:
setUp
in classTestCompactingMemStore
- Throws:
Exception
-
testCompaction1Bucket
- Overrides:
testCompaction1Bucket
in classTestCompactingMemStore
- Throws:
IOException
-
testCompaction2Buckets
- Overrides:
testCompaction2Buckets
in classTestCompactingMemStore
- Throws:
IOException
-
testCompaction3Buckets
- Overrides:
testCompaction3Buckets
in 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:
testPuttingBackChunksWithOpeningScanner
in classTestCompactingMemStore
- Throws:
IOException
-
testPuttingBackChunksAfterFlushing
- Overrides:
testPuttingBackChunksAfterFlushing
in 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
-