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.
| Constructor and Description |
|---|
TestRegionIncrement() |
| Modifier and Type | Method and Description |
|---|---|
static Collection<Object[]> |
data() |
void |
tearDown() |
void |
testContendedAcrossCellsIncrement()
Have each thread update its own Cell.
|
void |
testUnContendedSingleCellIncrement()
Have each thread update its own Cell.
|
public static Collection<Object[]> data()
public void testUnContendedSingleCellIncrement()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic void testContendedAcrossCellsIncrement()
throws IOException,
InterruptedException
IOExceptionInterruptedException