Class TestMinVersions
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestMinVersions
Test Minimum Versions feature (HBASE-4071).
-
Field Summary
Modifier and TypeFieldDescriptionprivate 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[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
checkResult
(org.apache.hadoop.hbase.client.Result r, byte[] col, byte[]... vals) private void
putFourVersions
(org.apache.hadoop.hbase.regionserver.HRegion region, long ts) void
Verify basic minimum versions functionalityvoid
Make sure the Deletes behave as expected with minimum versionsvoid
Verify that basic filters still behave correctly with minimum versions enabled.void
Verify behavior of getClosestBefore(...)void
Make sure the memstor behaves correctly with minimum versionsvoid
void
Test mixed memstore and storefile scanning with minimum versions.private void
verifyAfterTtl
(org.apache.hadoop.hbase.regionserver.HRegion region, long ts) private void
verifyBeforeCompaction
(org.apache.hadoop.hbase.regionserver.HRegion region, long ts) private void
verifyVersionedCellKeyValues
(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
-