Package org.apache.hadoop.hbase
Class TestMultiVersions
java.lang.Object
org.apache.hadoop.hbase.TestMultiVersions
@Tag("org.apache.hadoop.hbase.testclassification.MiscTests") @Tag("org.apache.hadoop.hbase.testclassification.MediumTests")
public class TestMultiVersions
extends Object
Port of old TestScanMultipleVersions, TestTimestamp and TestGetRowVersions from old testing
framework to
HBaseTestingUtil.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.hadoop.hbase.client.Adminprivate static final org.slf4j.Loggerprivate static final intprivate static final HBaseTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbefore()static voidstatic voidvoidtestGetRowVersions(org.junit.jupiter.api.TestInfo testInfo) Verifies versions across a cluster restart.voidtestScanMultipleVersions(org.junit.jupiter.api.TestInfo testInfo) Port of old TestScanMultipleVersions test here so can better utilize the spun up cluster running more than just a single test.voidtestTimestamps(org.junit.jupiter.api.TestInfo testInfo) Tests user specifiable time stamps putting, getting and scanning.
-
Field Details
-
LOG
-
UTIL
-
admin
-
NUM_SLAVES
- See Also:
-
-
Constructor Details
-
TestMultiVersions
public TestMultiVersions()
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
before
@BeforeEach public void before() throws org.apache.hadoop.hbase.MasterNotRunningException, org.apache.hadoop.hbase.ZooKeeperConnectionException, IOException- Throws:
org.apache.hadoop.hbase.MasterNotRunningExceptionorg.apache.hadoop.hbase.ZooKeeperConnectionExceptionIOException
-
testTimestamps
Tests user specifiable time stamps putting, getting and scanning. Also tests same in presence of deletes. Test cores are written so can be run against an HRegion and against an HTable: i.e. both local and remote.Port of old TestTimestamp test to here so can better utilize the spun up cluster running more than a single test per spin up. Keep old tests' crazyness.
- Throws:
Exception
-
testGetRowVersions
Verifies versions across a cluster restart. Port of old TestGetRowVersions test to here so can better utilize the spun up cluster running more than a single test per spin up. Keep old tests' crazyness.- Throws:
Exception
-
testScanMultipleVersions
@Test public void testScanMultipleVersions(org.junit.jupiter.api.TestInfo testInfo) throws Exception Port of old TestScanMultipleVersions test here so can better utilize the spun up cluster running more than just a single test. Keep old tests crazyness.Tests five cases of scans and timestamps.
- Throws:
Exception
-