public class TestRegionIncrement extends Object
There is similar test up in TestAtomicOperation. It does a test where it has 100 threads doing increments across two column families all on one row and the increments are connected to prove atomicity on row.
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
org.junit.rules.TestName |
name |
| Constructor and Description |
|---|
TestRegionIncrement() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp() |
void |
tearDown() |
void |
testContendedAcrossCellsIncrement()
Have each thread update its own Cell.
|
void |
testMVCCCausingMisRead() |
void |
testUnContendedSingleCellIncrement()
Have each thread update its own Cell.
|
public static final HBaseClassTestRule CLASS_RULE
public org.junit.rules.TestName name
public TestRegionIncrement()
public void testMVCCCausingMisRead() throws IOException
IOExceptionpublic void testUnContendedSingleCellIncrement() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void testContendedAcrossCellsIncrement() throws IOException, InterruptedException
IOExceptionInterruptedExceptionCopyright © 2007–2019 Cloudera. All rights reserved.