public class TestIncrementsFromClientSide extends Object
HTable.
Test is parameterized to run the slow and fast increment code paths. If fast, in the @before, we
do a rolling restart of the single regionserver so that it can pick up the go fast configuration.
Doing it this way should be faster than starting/stopping a cluster per test.
Test takes a long time because spin up a cluster between each run -- ugh.| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static byte[] |
FAMILY |
(package private) org.slf4j.Logger |
LOG |
org.junit.rules.TestName |
name |
private static byte[] |
QUALIFIER |
private static byte[] |
ROW |
protected static int |
SLAVES |
protected static HBaseTestingUtility |
TEST_UTIL |
| Constructor and Description |
|---|
TestIncrementsFromClientSide() |
| Modifier and Type | Method and Description |
|---|---|
static void |
afterClass() |
(package private) static void |
assertIncrementKey(org.apache.hadoop.hbase.Cell key,
byte[] row,
byte[] family,
byte[] qualifier,
long value)
Call over to the adjacent class's method of same name.
|
static void |
beforeClass() |
static String |
filterStringSoTableNameSafe(String str) |
void |
testBatchIncrementsWithReturnResultFalse() |
void |
testDuplicateIncrement()
Test increment result when there are duplicate rpc request.
|
void |
testIncrement() |
void |
testIncrementIncrZeroAtFirst() |
void |
testIncrementingInvalidValue() |
void |
testIncrementInvalidArguments() |
void |
testIncrementOnSameColumn() |
void |
testIncrementOutOfOrder() |
void |
testIncrementWithCustomTimestamp() |
void |
testIncrementWithDeletes() |
public static final HBaseClassTestRule CLASS_RULE
final org.slf4j.Logger LOG
protected static final HBaseTestingUtility TEST_UTIL
private static byte[] ROW
private static byte[] FAMILY
private static byte[] QUALIFIER
protected static int SLAVES
public org.junit.rules.TestName name
public TestIncrementsFromClientSide()
public static void beforeClass() throws Exception
Exceptionpublic static void afterClass() throws Exception
Exceptionpublic void testDuplicateIncrement() throws Exception
Exceptionpublic void testIncrementWithDeletes() throws Exception
Exceptionpublic void testIncrementingInvalidValue() throws Exception
Exceptionpublic void testBatchIncrementsWithReturnResultFalse() throws Exception
Exceptionpublic void testIncrementInvalidArguments() throws Exception
Exceptionpublic void testIncrementOutOfOrder() throws Exception
Exceptionpublic void testIncrementOnSameColumn() throws Exception
Exceptionpublic void testIncrementIncrZeroAtFirst() throws Exception
Exceptionpublic void testIncrement() throws Exception
Exceptionpublic void testIncrementWithCustomTimestamp() throws IOException
IOExceptionstatic void assertIncrementKey(org.apache.hadoop.hbase.Cell key, byte[] row, byte[] family, byte[] qualifier, long value) throws Exception
Exceptionpublic static String filterStringSoTableNameSafe(String str)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.