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
Nested ClassesModifier and TypeClassDescriptionprivate classprotected static class - 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static org.apache.hadoop.hbase.regionserver.ChunkCreatorstatic final HBaseClassTestRuleprivate static final org.slf4j.Loggerprotected org.apache.hadoop.hbase.regionserver.HRegionprotected org.apache.hadoop.hbase.regionserver.RegionServicesForStoresprotected org.apache.hadoop.hbase.regionserver.HStoreFields 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 TypeMethodDescriptionprotected intaddRowsByKeys(org.apache.hadoop.hbase.regionserver.AbstractMemStore hmc, String[] keys) protected intaddRowsByKeys(org.apache.hadoop.hbase.regionserver.AbstractMemStore hmc, String[] keys, byte[] val) protected voidprivate voidisExpectedRowWithoutTimestamps(int rowIndex, List<org.apache.hadoop.hbase.Cell> kvs) protected static byte[]makeQualifier(int i1, int i2) private longrunSnapshot(org.apache.hadoop.hbase.regionserver.AbstractMemStore hmc, boolean useForce) voidsetUp()voidtearDown()voidvoidvoidvoidvoidTest getNextRow from memstorevoidvoidvoidvoidvoidA simple test which verifies the 3 possible states when scanning across snapshot.voidTest memstore snapshotsvoidA simple test which flush in memory affect timeOfOldestEditvoidTests that the timeOfOldestEdit is updated correctly for the various edit operations in memstore.voidAdd 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, 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
 - 
chunkCreator
 - 
region
 - 
regionServicesForStores
 - 
store
 
 - 
 - 
Constructor Details
- 
TestCompactingMemStore
public TestCompactingMemStore() 
 - 
 - 
Method Details
- 
makeQualifier
 - 
tearDown
- Throws:
 Exception
 - 
setUp
- Overrides:
 setUpin 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:
 testScanAcrossSnapshot2in classTestDefaultMemStore- Throws:
 IOExceptionCloneNotSupportedException
 - 
testSnapshotting
Test memstore snapshots- Overrides:
 testSnapshottingin classTestDefaultMemStore- Throws:
 IOException
 - 
testGetNextRow
Test getNextRow from memstore- Overrides:
 testGetNextRowin classTestDefaultMemStore- Throws:
 Exception
 - 
testGet_memstoreAndSnapShot
- Overrides:
 testGet_memstoreAndSnapShotin 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:
 testUpsertMemstoreSizein classTestDefaultMemStore- Throws:
 Exception
 - 
testUpdateToTimeOfOldestEdit
Tests that the timeOfOldestEdit is updated correctly for the various edit operations in memstore.- Overrides:
 testUpdateToTimeOfOldestEditin 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)  
 -