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
Exceptionpublic void testRawScanWithoutKeepingDeletes() throws Exception
Exceptionpublic void testWithoutKeepingDeletes() throws Exception
Exceptionpublic void testRawScanWithColumns() throws Exception
Exceptionpublic void testRawScan() throws Exception
Exceptionpublic void testDeleteMarkerExpirationEmptyStore() throws Exception
Exceptionpublic void testDeleteMarkerExpiration() throws Exception
Exceptionpublic void testWithOldRow() throws Exception
Exceptionpublic void testRanges() throws Exception
Exceptionpublic void testDeleteMarkerVersioning() throws Exception
Exceptionpublic void testWithMixedCFs() throws Exception
Exceptionpublic void testWithMinVersions() throws Exception
Exceptionpublic void testWithTTL() throws Exception
Exceptionprivate void checkGet(org.apache.hadoop.hbase.regionserver.Region region, byte[] row, byte[] fam, byte[] col, long time, byte[]... vals) throws IOException
IOExceptionprivate int countDeleteMarkers(org.apache.hadoop.hbase.regionserver.HRegion region) throws IOException
IOExceptionprivate 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.