Class TestKeepDeletes
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestKeepDeletes
-
Field Summary
Modifier and TypeFieldDescriptionprivate final byte[]
private final byte[]
static final HBaseClassTestRule
(package private) HBaseTestingUtility
org.junit.rules.TestName
private final byte[]
private final byte[]
private final byte[]
private final byte[]
private final byte[]
private final byte[]
private final byte[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate 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
Make sure that deleted rows are retained.void
Test delete marker removal from store files.void
Verify that delete markers are removed from an otherwise empty store.void
Verify that column/version delete makers are sorted with their respective puts and removed correctly by versioning (i.e.void
Verify correct range demarcationvoid
Verify that "raw" scanning mode return delete markers and deletes rows.void
The ExplicitColumnTracker does not support "raw" scanning.void
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
Test keeping deleted rows together with min versions setvoid
Verify scenarios with multiple CFs and columnsvoid
Test delete marker removal from store files.void
basic verification of existing behaviorvoid
Test keeping deleted rows together with min versions set
-
Field Details
-
CLASS_RULE
-
hbu
-
T0
-
T1
-
T2
-
T3
-
T4
-
T5
-
T6
-
c0
-
c1
-
name
-
-
Constructor Details
-
TestKeepDeletes
public TestKeepDeletes()
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
testBasicScenario
Make sure that deleted rows are retained. Family delete markers are deleted. Column Delete markers are versioned Time range scan of deleted rows are possible- Throws:
Exception
-
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). Assuming this the desired behavior. Could also disallow "raw" scanning if the store does not have KEEP_DELETED_CELLS enabled. (can be changed easily)- Throws:
Exception
-
testWithoutKeepingDeletes
basic verification of existing behavior- Throws:
Exception
-
testRawScanWithColumns
The ExplicitColumnTracker does not support "raw" scanning.- Throws:
Exception
-
testRawScan
Verify that "raw" scanning mode return delete markers and deletes rows.- Throws:
Exception
-
testDeleteMarkerExpirationEmptyStore
Verify that delete markers are removed from an otherwise empty store.- Throws:
Exception
-
testDeleteMarkerExpiration
Test delete marker removal from store files.- Throws:
Exception
-
testWithOldRow
Test delete marker removal from store files.- Throws:
Exception
-
testRanges
Verify correct range demarcation- Throws:
Exception
-
testDeleteMarkerVersioning
Verify that column/version delete makers are sorted with their respective puts and removed correctly by versioning (i.e. not relying on the store earliestPutTS).- Throws:
Exception
-
testWithMixedCFs
Verify scenarios with multiple CFs and columns- Throws:
Exception
-
testWithMinVersions
Test keeping deleted rows together with min versions set- Throws:
Exception
-
testWithTTL
Test keeping deleted rows together with min versions set- Throws:
Exception
-
checkGet
private void checkGet(org.apache.hadoop.hbase.regionserver.Region region, byte[] row, byte[] fam, byte[] col, long time, byte[]... vals) throws IOException - Throws:
IOException
-
countDeleteMarkers
private int countDeleteMarkers(org.apache.hadoop.hbase.regionserver.HRegion region) throws IOException - Throws:
IOException
-
checkResult
private void checkResult(org.apache.hadoop.hbase.client.Result r, byte[] fam, byte[] col, byte[]... vals)
-