Class TestAtomicOperation
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestAtomicOperation
Testing of HRegion.incrementColumnValue, HRegion.increment, and HRegion.append
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classprivate classstatic classA thread that makes increment calls always on the same row, this.row against two column families on this row.static classprivate classprivate static enum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate final Stringprivate static CountDownLatchprivate static final org.slf4j.Loggerorg.junit.rules.TestName(package private) static final byte[](package private) static final byte[](package private) static final byte[](package private) org.apache.hadoop.hbase.regionserver.HRegion(package private) static final byte[](package private) static final byte[](package private) static byte[]private HBaseTestingUtilprivate static TestAtomicOperation.TestStep(package private) static final byte[](package private) static final byte[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidassertICV(byte[] row, byte[] familiy, byte[] qualifier, long amount, boolean fast) private voidinitHRegion(byte[] tableName, String callingMethod, byte[]... families) private voidinitHRegion(byte[] tableName, String callingMethod, int[] maxVersions, byte[]... families) voidsetup()voidteardown()voidTest basic append operation.voidvoidvoidvoidTest multi-threaded increments.voidvoidTest multi-threaded region mutations.voidTest written as a verifier for HBASE-7051, CheckAndPut should properly read MVCC.voidTest multi-threaded row mutations.
-
Field Details
-
CLASS_RULE
-
LOG
-
name
-
region
org.apache.hadoop.hbase.regionserver.HRegion region -
TEST_UTIL
-
tableName
-
qual1
-
qual2
-
qual3
-
value1
-
value2
-
row
-
row2
-
latch
-
testStep
-
family
- See Also:
-
-
Constructor Details
-
TestAtomicOperation
public TestAtomicOperation()
-
-
Method Details
-
setup
-
teardown
- Throws:
IOException
-
testAppend
Test basic append operation. More tests in- Throws:
IOException- See Also:
-
org.apache.hadoop.hbase.client.TestFromClientSide#testAppend()
-
testAppendWithMultipleFamilies
- Throws:
IOException
-
testAppendWithNonExistingFamily
- Throws:
IOException
-
testIncrementWithNonExistingFamily
- Throws:
IOException
-
testIncrementMultiThreads
Test multi-threaded increments.- Throws:
IOException
-
assertICV
private void assertICV(byte[] row, byte[] familiy, byte[] qualifier, long amount, boolean fast) throws IOException - Throws:
IOException
-
initHRegion
private void initHRegion(byte[] tableName, String callingMethod, byte[]... families) throws IOException - Throws:
IOException
-
initHRegion
private void initHRegion(byte[] tableName, String callingMethod, int[] maxVersions, byte[]... families) throws IOException - Throws:
IOException
-
testAppendMultiThreads
- Throws:
IOException
-
testRowMutationMultiThreads
Test multi-threaded row mutations.- Throws:
IOException
-
testMultiRowMutationMultiThreads
Test multi-threaded region mutations.- Throws:
IOException
-
testPutAndCheckAndPutInParallel
Test written as a verifier for HBASE-7051, CheckAndPut should properly read MVCC. Moved into TestAtomicOperation from its original location, TestHBase7051- Throws:
Exception
-