Class TestMinVersions
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestMinVersions
Test Minimum Versions feature (HBASE-4071).
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate 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[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcheckResult(org.apache.hadoop.hbase.client.Result r, byte[] col, byte[]... vals) private voidputFourVersions(org.apache.hadoop.hbase.regionserver.HRegion region, long ts) voidVerify basic minimum versions functionalityvoidMake sure the Deletes behave as expected with minimum versionsvoidVerify that basic filters still behave correctly with minimum versions enabled.voidVerify behavior of getClosestBefore(...)voidMake sure the memstor behaves correctly with minimum versionsvoidvoidTest mixed memstore and storefile scanning with minimum versions.private voidverifyAfterTtl(org.apache.hadoop.hbase.regionserver.HRegion region, long ts) private voidverifyBeforeCompaction(org.apache.hadoop.hbase.regionserver.HRegion region, long ts) private voidverifyVersionedCellKeyValues(int ttl, org.apache.hadoop.hbase.client.ColumnFamilyDescriptor cfd)
-
Field Details
-
CLASS_RULE
-
hbu
-
T0
-
T1
-
T2
-
T3
-
T4
-
T5
-
c0
-
name
-
-
Constructor Details
-
TestMinVersions
public TestMinVersions()
-
-
Method Details
-
testGetClosestBefore
Verify behavior of getClosestBefore(...)- Throws:
Exception
-
testStoreMemStore
Test mixed memstore and storefile scanning with minimum versions.- Throws:
Exception
-
testDelete
Make sure the Deletes behave as expected with minimum versions- Throws:
Exception
-
testMemStore
Make sure the memstor behaves correctly with minimum versions- Throws:
Exception
-
testBaseCase
Verify basic minimum versions functionality- Throws:
Exception
-
testFilters
Verify that basic filters still behave correctly with minimum versions enabled.- Throws:
Exception
-
testMinVersionsWithKeepDeletedCellsTTL
- Throws:
Exception
-
verifyVersionedCellKeyValues
private void verifyVersionedCellKeyValues(int ttl, org.apache.hadoop.hbase.client.ColumnFamilyDescriptor cfd) throws IOException - Throws:
IOException
-
verifyAfterTtl
private void verifyAfterTtl(org.apache.hadoop.hbase.regionserver.HRegion region, long ts) throws IOException - Throws:
IOException
-
verifyBeforeCompaction
private void verifyBeforeCompaction(org.apache.hadoop.hbase.regionserver.HRegion region, long ts) throws IOException - Throws:
IOException
-
putFourVersions
private void putFourVersions(org.apache.hadoop.hbase.regionserver.HRegion region, long ts) throws IOException - Throws:
IOException
-
checkResult
-