Class TestCompactingMemStore
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestDefaultMemStore
org.apache.hadoop.hbase.regionserver.TestCompactingMemStore
- Direct Known Subclasses:
TestCompactingToCellFlatMapMemStore
compacted memstore test case
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate class
protected static class
-
Field Summary
Modifier and TypeFieldDescriptionprotected static org.apache.hadoop.hbase.regionserver.ChunkCreator
static final HBaseClassTestRule
private static final org.slf4j.Logger
protected org.apache.hadoop.hbase.regionserver.HRegion
protected org.apache.hadoop.hbase.regionserver.RegionServicesForStores
protected org.apache.hadoop.hbase.regionserver.HStore
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 TypeMethodDescriptionprotected int
addRowsByKeys
(org.apache.hadoop.hbase.regionserver.AbstractMemStore hmc, String[] keys) protected int
addRowsByKeys
(org.apache.hadoop.hbase.regionserver.AbstractMemStore hmc, String[] keys, byte[] val) protected void
private void
isExpectedRowWithoutTimestamps
(int rowIndex, List<org.apache.hadoop.hbase.Cell> kvs) protected static byte[]
makeQualifier
(int i1, int i2) private long
runSnapshot
(org.apache.hadoop.hbase.regionserver.AbstractMemStore hmc, boolean useForce) void
setUp()
void
tearDown()
void
void
void
void
void
Test getNextRow from memstorevoid
void
void
void
void
A simple test which verifies the 3 possible states when scanning across snapshot.void
Test memstore snapshotsvoid
A simple test which flush in memory affect timeOfOldestEditvoid
Tests that the timeOfOldestEdit is updated correctly for the various edit operations in memstore.void
Add keyvalues with a fixed memstoreTs, and checks that memstore size is decreased as older keyvalues are deleted from the memstore.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
-
chunkCreator
-
region
-
regionServicesForStores
-
store
-
-
Constructor Details
-
TestCompactingMemStore
public TestCompactingMemStore()
-
-
Method Details
-
makeQualifier
-
tearDown
- Throws:
Exception
-
setUp
- Overrides:
setUp
in classTestDefaultMemStore
- Throws:
Exception
-
compactingSetUp
- Throws:
Exception
-
testTimeOfOldestEdit
A simple test which flush in memory affect timeOfOldestEdit -
testScanAcrossSnapshot2
A simple test which verifies the 3 possible states when scanning across snapshot.- Overrides:
testScanAcrossSnapshot2
in classTestDefaultMemStore
- Throws:
IOException
CloneNotSupportedException
-
testSnapshotting
Test memstore snapshots- Overrides:
testSnapshotting
in classTestDefaultMemStore
- Throws:
IOException
-
testGetNextRow
Test getNextRow from memstore- Overrides:
testGetNextRow
in classTestDefaultMemStore
- Throws:
Exception
-
testGet_memstoreAndSnapShot
- Overrides:
testGet_memstoreAndSnapShot
in classTestDefaultMemStore
- Throws:
IOException
-
testUpsertMemstoreSize
Add keyvalues with a fixed memstoreTs, and checks that memstore size is decreased as older keyvalues are deleted from the memstore.- Overrides:
testUpsertMemstoreSize
in classTestDefaultMemStore
- Throws:
Exception
-
testUpdateToTimeOfOldestEdit
Tests that the timeOfOldestEdit is updated correctly for the various edit operations in memstore.- Overrides:
testUpdateToTimeOfOldestEdit
in classTestDefaultMemStore
- Throws:
Exception
-
runSnapshot
private long runSnapshot(org.apache.hadoop.hbase.regionserver.AbstractMemStore hmc, boolean useForce) throws IOException - Throws:
IOException
-
isExpectedRowWithoutTimestamps
-
testPuttingBackChunksAfterFlushing
- Throws:
IOException
-
testPuttingBackChunksWithOpeningScanner
- Throws:
IOException
-
testPuttingBackChunksWithOpeningPipelineScanner
- Throws:
IOException
-
testCompaction1Bucket
- Throws:
IOException
-
testCompaction2Buckets
- Throws:
IOException
-
testCompaction3Buckets
- Throws:
IOException
-
testMagicCompaction3Buckets
- Throws:
IOException
-
addRowsByKeys
protected int addRowsByKeys(org.apache.hadoop.hbase.regionserver.AbstractMemStore hmc, String[] keys) -
addRowsByKeys
protected int addRowsByKeys(org.apache.hadoop.hbase.regionserver.AbstractMemStore hmc, String[] keys, byte[] val)
-