public class TestIncrementsFromClientSide extends Object
TableBuilder
. 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 |
testDuplicateBatchIncrement()
Test batch increment result when there are duplicate rpc request.
|
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() |
void |
testIncrementWithTtlTags() |
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
Exception
public static void afterClass() throws Exception
Exception
public void testDuplicateIncrement() throws Exception
Exception
public void testDuplicateBatchIncrement() throws Exception
Exception
public void testIncrementWithDeletes() throws Exception
Exception
public void testIncrementingInvalidValue() throws Exception
Exception
public void testBatchIncrementsWithReturnResultFalse() throws Exception
Exception
public void testIncrementInvalidArguments() throws Exception
Exception
public void testIncrementOutOfOrder() throws Exception
Exception
public void testIncrementOnSameColumn() throws Exception
Exception
public void testIncrementIncrZeroAtFirst() throws Exception
Exception
public void testIncrement() throws Exception
Exception
public void testIncrementWithCustomTimestamp() throws IOException
IOException
static void assertIncrementKey(org.apache.hadoop.hbase.Cell key, byte[] row, byte[] family, byte[] qualifier, long value) throws Exception
Exception
public static String filterStringSoTableNameSafe(String str)
public void testIncrementWithTtlTags() throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.