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 n
|
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 n
|
void |
testTimeOfOldestEdit()
A simple test which flush in memory affect timeOfOldestEdit
|
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.
|
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
public 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 TestDefaultMemStore
Exception
protected void compactingSetUp() throws Exception
Exception
public void testTimeOfOldestEdit()
public void testScanAcrossSnapshot2() throws IOException, CloneNotSupportedException
testScanAcrossSnapshot2
in class TestDefaultMemStore
IOException
CloneNotSupportedException
public void testSnapshotting() throws IOException
testSnapshotting
in class TestDefaultMemStore
IOException
public void testGetNextRow() throws Exception
testGetNextRow
in class TestDefaultMemStore
Exception
public void testGet_memstoreAndSnapShot() throws IOException
testGet_memstoreAndSnapShot
in class TestDefaultMemStore
IOException
public void testUpsertMemstoreSize() throws Exception
testUpsertMemstoreSize
in class TestDefaultMemStore
Exception
public void testUpdateToTimeOfOldestEdit() throws Exception
testUpdateToTimeOfOldestEdit
in class TestDefaultMemStore
Exception
private long runSnapshot(org.apache.hadoop.hbase.regionserver.AbstractMemStore hmc, boolean useForce) throws IOException
IOException
private void isExpectedRowWithoutTimestamps(int rowIndex, List<org.apache.hadoop.hbase.Cell> kvs)
public void testPuttingBackChunksAfterFlushing() throws IOException
IOException
public void testPuttingBackChunksWithOpeningScanner() throws IOException
IOException
public void testPuttingBackChunksWithOpeningPipelineScanner() throws IOException
IOException
public void testCompaction1Bucket() throws IOException
IOException
public void testCompaction2Buckets() throws IOException
IOException
public void testCompaction3Buckets() throws IOException
IOException
public void testMagicCompaction3Buckets() throws IOException
IOException
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)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.