Class TestMinVersions
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestMinVersions
@Tag("org.apache.hadoop.hbase.testclassification.RegionServerTests") @Tag("org.apache.hadoop.hbase.testclassification.MediumTests")
public class TestMinVersions
extends Object
Test Minimum Versions feature (HBASE-4071).
-
Field Summary
Fields -
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) voidsetTestName(org.junit.jupiter.api.TestInfo testInfo) Verify behavior of getClosestBefore(...)voidVerify basic minimum versions functionalityvoidMake sure the Deletes behave as expected with minimum versionsvoidVerify that basic filters still behave correctly with minimum versions enabled.voidvoidMake 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
-
hbu
-
T0
-
T1
-
T2
-
T3
-
T4
-
T5
-
c0
-
name
-
-
Constructor Details
-
TestMinVersions
public TestMinVersions()
-
-
Method Details
-
setTestName
Verify behavior of getClosestBefore(...) -
testGetClosestBefore
- 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
-