Package org.apache.hadoop.hbase
Class AcidGuaranteesTestBase
java.lang.Object
org.apache.hadoop.hbase.AcidGuaranteesTestBase
- Direct Known Subclasses:
TestGetAtomicity,TestMixedAtomicity,TestMobGetAtomicity,TestMobMixedAtomicity,TestMobScanAtomicity,TestScanAtomicity
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
FieldsModifier and TypeFieldDescriptionprivate org.apache.hadoop.hbase.MemoryCompactionPolicyprivate AcidGuaranteesTestToolprivate static final HBaseTestingUtil -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAcidGuaranteesTestBase(org.apache.hadoop.hbase.MemoryCompactionPolicy policy) -
Method Summary
Modifier and TypeMethodDescriptionstatic Stream<org.junit.jupiter.params.provider.Arguments>protected final voidrunTestAtomicity(long millisToRun, int numWriters, int numGetters, int numScanners, int numUniqueRows, boolean useMob) voidsetUp()static voidvoidtearDown()static void
-
Field Details
-
UTIL
-
tool
-
policy
-
-
Constructor Details
-
AcidGuaranteesTestBase
-
-
Method Details
-
parameters
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
runTestAtomicity
protected final void runTestAtomicity(long millisToRun, int numWriters, int numGetters, int numScanners, int numUniqueRows, boolean useMob) throws Exception - Throws:
Exception
-