Class TestAtomicOperation
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestAtomicOperation
Testing of HRegion.incrementColumnValue, HRegion.increment, and HRegion.append
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
private class
static class
A thread that makes increment calls always on the same row, this.row against two column families on this row.static class
private class
private static enum
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private final String
private static CountDownLatch
private static final org.slf4j.Logger
org.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 HBaseTestingUtility
private static TestAtomicOperation.TestStep
(package private) static final byte[]
(package private) static final byte[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
assertICV
(byte[] row, byte[] familiy, byte[] qualifier, long amount, boolean fast) private void
initHRegion
(byte[] tableName, String callingMethod, byte[]... families) private void
initHRegion
(byte[] tableName, String callingMethod, int[] maxVersions, byte[]... families) void
setup()
void
teardown()
void
Test basic append operation.void
void
void
void
Test multi-threaded increments.void
void
Test multi-threaded region mutations.void
Test written as a verifier for HBASE-7051, CheckAndPut should properly read MVCC.void
Test 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
-