Class TestKeepDeletes
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestKeepDeletes
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]private final byte[]static final HBaseClassTestRule(package private) HBaseTestingUtilorg.junit.rules.TestNameprivate final byte[]private final byte[]private final byte[]private final byte[]private final byte[]private final byte[]private final byte[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcheckGet(org.apache.hadoop.hbase.regionserver.Region region, byte[] row, byte[] fam, byte[] col, long time, byte[]... vals) private voidcheckResult(org.apache.hadoop.hbase.client.Result r, byte[] fam, byte[] col, byte[]... vals) private intcountDeleteMarkers(org.apache.hadoop.hbase.regionserver.HRegion region) voidsetUp()voidtearDown()voidMake sure that deleted rows are retained.voidTest delete marker removal from store files.voidVerify that delete markers are removed from an otherwise empty store.voidVerify that column/version delete makers are sorted with their respective puts and removed correctly by versioning (i.e.voidVerify correct range demarcationvoidVerify that "raw" scanning mode return delete markers and deletes rows.voidThe ExplicitColumnTracker does not support "raw" scanning.voidEven 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).voidTest keeping deleted rows together with min versions setvoidVerify scenarios with multiple CFs and columnsvoidTest delete marker removal from store files.voidbasic verification of existing behaviorvoidTest 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)
-