public class TestCompactingMemStore extends TestDefaultMemStore
| Modifier and Type | Class and Description |
|---|---|
private class |
TestCompactingMemStore.EnvironmentEdgeForMemstoreTest |
protected static class |
TestCompactingMemStore.MyCompactingMemStore |
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.hadoop.hbase.regionserver.ChunkCreator |
chunkCreator |
static HBaseClassTestRule |
CLASS_RULE |
private static org.slf4j.Logger |
LOG |
protected org.apache.hadoop.hbase.regionserver.HRegion |
region |
protected org.apache.hadoop.hbase.regionserver.RegionServicesForStores |
regionServicesForStores |
protected org.apache.hadoop.hbase.regionserver.HStore |
store |
FAMILY, memstore, mvcc, name, QUALIFIER_COUNT, ROW_COUNT, startSeqNum| Constructor and Description |
|---|
TestCompactingMemStore() |
| Modifier and Type | Method and Description |
|---|---|
protected 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 |
compactingSetUp() |
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 |
testCompaction1Bucket() |
void |
testCompaction2Buckets() |
void |
testCompaction3Buckets() |
void |
testGet_memstoreAndSnapShot() |
void |
testGetNextRow()
Test getNextRow from memstore
|
void |
testMagicCompaction3Buckets() |
void |
testPuttingBackChunksAfterFlushing() |
void |
testPuttingBackChunksWithOpeningPipelineScanner() |
void |
testPuttingBackChunksWithOpeningScanner() |
void |
testScanAcrossSnapshot2()
A simple test which verifies the 3 possible states when scanning across snapshot.
|
void |
testSnapshotting()
Test memstore snapshots
|
void |
testUpdateToTimeOfOldestEdit()
Tests that the timeOfOldestEdit is updated correctly for the
various edit operations in memstore.
|
void |
testUpsertMemstoreSize()
Add keyvalues with a fixed memstoreTs, and checks that memstore size is decreased
as older keyvalues are deleted from the memstore.
|
addRegionToMETA, 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, verifyScanAcrossSnapshot2public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
protected static org.apache.hadoop.hbase.regionserver.ChunkCreator chunkCreator
protected org.apache.hadoop.hbase.regionserver.HRegion region
protected org.apache.hadoop.hbase.regionserver.RegionServicesForStores regionServicesForStores
protected org.apache.hadoop.hbase.regionserver.HStore store
public TestCompactingMemStore()
protected static byte[] makeQualifier(int i1, int i2)
public void setUp() throws Exception
setUp in class TestDefaultMemStoreExceptionprotected void compactingSetUp() throws Exception
Exceptionpublic void testScanAcrossSnapshot2() throws IOException, CloneNotSupportedException
testScanAcrossSnapshot2 in class TestDefaultMemStoreIOExceptionCloneNotSupportedExceptionpublic void testSnapshotting() throws IOException
testSnapshotting in class TestDefaultMemStoreIOExceptionpublic void testGetNextRow() throws Exception
testGetNextRow in class TestDefaultMemStoreInterruptedExceptionExceptionpublic void testGet_memstoreAndSnapShot() throws IOException
testGet_memstoreAndSnapShot in class TestDefaultMemStoreIOExceptionpublic void testUpsertMemstoreSize() throws Exception
testUpsertMemstoreSize in class TestDefaultMemStoreExceptionpublic void testUpdateToTimeOfOldestEdit() throws Exception
testUpdateToTimeOfOldestEdit in class TestDefaultMemStoreExceptionprivate long runSnapshot(org.apache.hadoop.hbase.regionserver.AbstractMemStore hmc, boolean useForce) throws IOException
IOExceptionprivate void isExpectedRowWithoutTimestamps(int rowIndex, List<org.apache.hadoop.hbase.Cell> kvs)
public void testPuttingBackChunksAfterFlushing() throws IOException
IOExceptionpublic void testPuttingBackChunksWithOpeningScanner() throws IOException
IOExceptionpublic void testPuttingBackChunksWithOpeningPipelineScanner() throws IOException
IOExceptionpublic void testCompaction1Bucket() throws IOException
IOExceptionpublic void testCompaction2Buckets() throws IOException
IOExceptionpublic void testCompaction3Buckets() throws IOException
IOExceptionpublic void testMagicCompaction3Buckets() throws IOException
IOExceptionprotected 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)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.