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
IOException
public void testAppend() throws IOException
IOException
org.apache.hadoop.hbase.client.TestFromClientSide#testAppend()
public void testAppendWithMultipleFamilies() throws IOException
IOException
public void testAppendWithNonExistingFamily() throws IOException
IOException
public void testIncrementWithNonExistingFamily() throws IOException
IOException
public void testIncrementMultiThreads() throws IOException
IOException
private void assertICV(byte[] row, byte[] familiy, byte[] qualifier, long amount, boolean fast) throws IOException
IOException
private void initHRegion(byte[] tableName, String callingMethod, byte[]... families) throws IOException
IOException
private void initHRegion(byte[] tableName, String callingMethod, int[] maxVersions, byte[]... families) throws IOException
IOException
public void testAppendMultiThreads() throws IOException
IOException
public void testRowMutationMultiThreads() throws IOException
IOException
public void testMultiRowMutationMultiThreads() throws IOException
IOException
public void testPutAndCheckAndPutInParallel() throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.