public class TestKeepDeletes extends Object
Modifier and Type | Field and Description |
---|---|
private byte[] |
c0 |
private byte[] |
c1 |
static HBaseClassTestRule |
CLASS_RULE |
(package private) HBaseTestingUtility |
hbu |
org.junit.rules.TestName |
name |
private byte[] |
T0 |
private byte[] |
T1 |
private byte[] |
T2 |
private byte[] |
T3 |
private byte[] |
T4 |
private byte[] |
T5 |
private byte[] |
T6 |
Constructor and Description |
---|
TestKeepDeletes() |
Modifier and Type | Method and Description |
---|---|
private void |
checkGet(org.apache.hadoop.hbase.regionserver.Region region,
byte[] row,
byte[] fam,
byte[] col,
long time,
byte[]... vals) |
private void |
checkResult(org.apache.hadoop.hbase.client.Result r,
byte[] fam,
byte[] col,
byte[]... vals) |
private int |
countDeleteMarkers(org.apache.hadoop.hbase.regionserver.HRegion region) |
void |
setUp() |
void |
tearDown() |
void |
testBasicScenario()
Make sure that deleted rows are retained.
|
void |
testDeleteMarkerExpiration()
Test delete marker removal from store files.
|
void |
testDeleteMarkerExpirationEmptyStore()
Verify that delete markers are removed from an otherwise empty store.
|
void |
testDeleteMarkerVersioning()
Verify that column/version delete makers are sorted with their respective puts and removed
correctly by versioning (i.e.
|
void |
testRanges()
Verify correct range demarcation
|
void |
testRawScan()
Verify that "raw" scanning mode return delete markers and deletes rows.
|
void |
testRawScanWithColumns()
The ExplicitColumnTracker does not support "raw" scanning.
|
void |
testRawScanWithoutKeepingDeletes()
Even when the store does not keep deletes a "raw" scan will return everything it can find
(unless discarding cells is guaranteed to have no effect).
|
void |
testWithMinVersions()
Test keeping deleted rows together with min versions set
|
void |
testWithMixedCFs()
Verify scenarios with multiple CFs and columns
|
void |
testWithOldRow()
Test delete marker removal from store files.
|
void |
testWithoutKeepingDeletes()
basic verification of existing behavior
|
void |
testWithTTL()
Test keeping deleted rows together with min versions set
|
public static final HBaseClassTestRule CLASS_RULE
private final byte[] T0
private final byte[] T1
private final byte[] T2
private final byte[] T3
private final byte[] T4
private final byte[] T5
private final byte[] T6
private final byte[] c0
private final byte[] c1
public org.junit.rules.TestName name
public TestKeepDeletes()
public void testBasicScenario() throws Exception
Exception
public void testRawScanWithoutKeepingDeletes() throws Exception
Exception
public void testWithoutKeepingDeletes() throws Exception
Exception
public void testRawScanWithColumns() throws Exception
Exception
public void testRawScan() throws Exception
Exception
public void testDeleteMarkerExpirationEmptyStore() throws Exception
Exception
public void testDeleteMarkerExpiration() throws Exception
Exception
public void testWithOldRow() throws Exception
Exception
public void testRanges() throws Exception
Exception
public void testDeleteMarkerVersioning() throws Exception
Exception
public void testWithMixedCFs() throws Exception
Exception
public void testWithMinVersions() throws Exception
Exception
public void testWithTTL() throws Exception
Exception
private void checkGet(org.apache.hadoop.hbase.regionserver.Region region, byte[] row, byte[] fam, byte[] col, long time, byte[]... vals) throws IOException
IOException
private int countDeleteMarkers(org.apache.hadoop.hbase.regionserver.HRegion region) throws IOException
IOException
private void checkResult(org.apache.hadoop.hbase.client.Result r, byte[] fam, byte[] col, byte[]... vals)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.