public class TestAtomicOperation extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TestAtomicOperation.AtomicOperation |
private class |
TestAtomicOperation.CheckAndPutThread |
static class |
TestAtomicOperation.Incrementer
A thread that makes increment calls always on the same row, this.row against two column
families on this row.
|
static class |
TestAtomicOperation.MockHRegion |
private class |
TestAtomicOperation.PutThread |
private static class |
TestAtomicOperation.TestStep |
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private String |
family |
private static CountDownLatch |
latch |
private static org.slf4j.Logger |
LOG |
org.junit.rules.TestName |
name |
(package private) static byte[] |
qual1 |
(package private) static byte[] |
qual2 |
(package private) static byte[] |
qual3 |
(package private) org.apache.hadoop.hbase.regionserver.HRegion |
region |
(package private) static byte[] |
row |
(package private) static byte[] |
row2 |
(package private) static byte[] |
tableName |
private HBaseTestingUtility |
TEST_UTIL |
private static TestAtomicOperation.TestStep |
testStep |
(package private) static byte[] |
value1 |
(package private) static byte[] |
value2 |
| Constructor and Description |
|---|
TestAtomicOperation() |
| Modifier and Type | Method and Description |
|---|---|
private 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 |
testAppend()
Test basic append operation.
|
void |
testAppendMultiThreads() |
void |
testAppendWithMultipleFamilies() |
void |
testAppendWithNonExistingFamily() |
void |
testIncrementMultiThreads()
Test multi-threaded increments.
|
void |
testIncrementWithNonExistingFamily() |
void |
testMultiRowMutationMultiThreads()
Test multi-threaded region mutations.
|
void |
testPutAndCheckAndPutInParallel()
Test written as a verifier for HBASE-7051, CheckAndPut should properly read
MVCC.
|
void |
testRowMutationMultiThreads()
Test multi-threaded row mutations.
|
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
public org.junit.rules.TestName name
org.apache.hadoop.hbase.regionserver.HRegion region
private HBaseTestingUtility TEST_UTIL
static byte[] tableName
static final byte[] qual1
static final byte[] qual2
static final byte[] qual3
static final byte[] value1
static final byte[] value2
static final byte[] row
static final byte[] row2
private static CountDownLatch latch
private static volatile TestAtomicOperation.TestStep testStep
private final String family
public TestAtomicOperation()
public void setup()
public void teardown() throws IOException
IOExceptionpublic void testAppend() throws IOException
IOExceptionorg.apache.hadoop.hbase.client.TestFromClientSide#testAppend()public void testAppendWithMultipleFamilies() throws IOException
IOExceptionpublic void testAppendWithNonExistingFamily() throws IOException
IOExceptionpublic void testIncrementWithNonExistingFamily() throws IOException
IOExceptionpublic void testIncrementMultiThreads() throws IOException
IOExceptionprivate void assertICV(byte[] row, byte[] familiy, byte[] qualifier, long amount, boolean fast) throws IOException
IOExceptionprivate void initHRegion(byte[] tableName, String callingMethod, byte[]... families) throws IOException
IOExceptionprivate void initHRegion(byte[] tableName, String callingMethod, int[] maxVersions, byte[]... families) throws IOException
IOExceptionpublic void testAppendMultiThreads() throws IOException
IOExceptionpublic void testRowMutationMultiThreads() throws IOException
IOExceptionpublic void testMultiRowMutationMultiThreads() throws IOException
IOExceptionpublic void testPutAndCheckAndPutInParallel() throws Exception
ExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.