Package org.apache.hadoop.hbase
Class AcidGuaranteesTestBase
java.lang.Object
org.apache.hadoop.hbase.AcidGuaranteesTestBase
- Direct Known Subclasses:
TestAcidGuaranteesWithAdaptivePolicy
,TestAcidGuaranteesWithBasicPolicy
,TestAcidGuaranteesWithEagerPolicy
,TestAcidGuaranteesWithNoInMemCompaction
Test case that uses multiple threads to read and write multifamily rows into a table, verifying
that reads never see partially-complete writes. This can run as a junit test, or with a main()
function which runs against a real cluster (eg for testing with failures, region movement, etc)
-
Field Summary
Modifier and TypeFieldDescriptionprivate AcidGuaranteesTestTool
private static final HBaseTestingUtility
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract org.apache.hadoop.hbase.MemoryCompactionPolicy
private void
runTestAtomicity
(long millisToRun, int numWriters, int numGetters, int numScanners, int numUniqueRows) private void
runTestAtomicity
(long millisToRun, int numWriters, int numGetters, int numScanners, int numUniqueRows, boolean useMob) void
setUp()
static void
void
tearDown()
static void
void
void
void
void
void
void
-
Field Details
-
UTIL
-
tool
-
-
Constructor Details
-
AcidGuaranteesTestBase
public AcidGuaranteesTestBase()
-
-
Method Details
-
getMemoryCompactionPolicy
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
runTestAtomicity
private void runTestAtomicity(long millisToRun, int numWriters, int numGetters, int numScanners, int numUniqueRows) throws Exception - Throws:
Exception
-
runTestAtomicity
private void runTestAtomicity(long millisToRun, int numWriters, int numGetters, int numScanners, int numUniqueRows, boolean useMob) throws Exception - Throws:
Exception
-
testGetAtomicity
- Throws:
Exception
-
testScanAtomicity
- Throws:
Exception
-
testMixedAtomicity
- Throws:
Exception
-
testMobGetAtomicity
- Throws:
Exception
-
testMobScanAtomicity
- Throws:
Exception
-
testMobMixedAtomicity
- Throws:
Exception
-