public class TestDefaultMemStore
extends TestCase
Constructor and Description |
---|
TestDefaultMemStore() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args) |
void |
setUp() |
void |
testGet_memstoreAndSnapShot() |
void |
testGetNextRow()
Test getNextRow from memstore
|
void |
testGetWithDelete() |
void |
testGetWithDeleteColumn() |
void |
testGetWithDeleteFamily() |
void |
testKeepDeleteInmemstore() |
void |
testMemstoreConcurrentControl() |
void |
testMemstoreDeletesVisibilityWithSameKey()
When we insert a higher-memstoreTS deletion of a cell but with
the same timestamp, we still need to provide consistent reads
for the same scanner.
|
void |
testMemstoreEditsVisibilityWithSameKey()
Regression test for HBASE-2616, HBASE-2670.
|
void |
testMultipleTimestamps()
Test to ensure correctness when using Memstore with multiple timestamps
|
void |
testMultipleVersionsSimple() |
void |
testPutSameKey() |
void |
testReadOwnWritesUnderConcurrency() |
void |
testRetainsDeleteColumn() |
void |
testRetainsDeleteFamily() |
void |
testRetainsDeleteVersion() |
void |
testScanAcrossSnapshot()
Test memstore snapshot happening while scanning.
|
void |
testScanAcrossSnapshot2()
A simple test which verifies the 3 possible states when scanning across snapshot.
|
void |
testShouldFlush()
Tests the HRegion.shouldFlush method - adds an edit in the memstore
and checks that shouldFlush returns true, and another where it disables
the periodic flush functionality and tests whether shouldFlush returns
false.
|
void |
testShouldFlushMeta() |
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.
|
void |
testUpsertMSLAB()
Test a pathological pattern that shows why we can't currently
use the MSLAB for upsert workloads.
|
public void testPutSameKey()
public void testScanAcrossSnapshot() throws IOException
IOException
public void testScanAcrossSnapshot2() throws IOException, CloneNotSupportedException
public void testMemstoreConcurrentControl() throws IOException
IOException
public void testMemstoreEditsVisibilityWithSameKey() throws IOException
IOException
public void testMemstoreDeletesVisibilityWithSameKey() throws IOException
IOException
public void testReadOwnWritesUnderConcurrency() throws Throwable
Throwable
public void testSnapshotting() throws IOException
IOException
public void testMultipleVersionsSimple() throws Exception
Exception
public void testGetNextRow() throws Exception
InterruptedException
Exception
public void testGet_memstoreAndSnapShot() throws IOException
IOException
public void testGetWithDelete() throws IOException
IOException
public void testGetWithDeleteColumn() throws IOException
IOException
public void testGetWithDeleteFamily() throws IOException
IOException
public void testKeepDeleteInmemstore()
public void testRetainsDeleteVersion() throws IOException
IOException
public void testRetainsDeleteColumn() throws IOException
IOException
public void testRetainsDeleteFamily() throws IOException
IOException
public void testMultipleTimestamps() throws IOException
IOException
public void testUpsertMSLAB() throws Exception
Exception
public void testUpsertMemstoreSize() throws Exception
Exception
public void testUpdateToTimeOfOldestEdit() throws Exception
Exception
public void testShouldFlush() throws Exception
Exception
public static void main(String[] args) throws IOException
IOException