public class TestRegionIncrement
extends java.lang.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 java.util.Collection<java.lang.Object[]> |
data() |
void |
tearDown() |
void |
testContendedAcrossCellsIncrement()
Have each thread update its own Cell.
|
void |
testUnContendedSingleCellIncrement()
Have each thread update its own Cell.
|
public static java.util.Collection<java.lang.Object[]> data()
public void tearDown()
throws java.lang.Exception
java.lang.Exceptionpublic void testUnContendedSingleCellIncrement()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionpublic void testContendedAcrossCellsIncrement()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedException