Class TestPostIncrementAndAppendBeforeWAL
java.lang.Object
org.apache.hadoop.hbase.coprocessor.TestPostIncrementAndAppendBeforeWAL
Test coprocessor methods
RegionObserver.postIncrementBeforeWAL(ObserverContext, Mutation, List)
and
RegionObserver.postAppendBeforeWAL(ObserverContext, Mutation, List)
. These methods may
change the cells which will be applied to memstore and WAL. So add unit test for the case which
change the cell's column family and tags.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final String
private static final byte[]
private static final String
private static final byte[]
private static final String
private static final byte[]
static final HBaseClassTestRule
private static org.apache.hadoop.hbase.client.Connection
private static final byte[]
private static final byte[]
private static final org.slf4j.Logger
org.junit.rules.TestName
private static final org.apache.hadoop.hbase.security.access.Permission
private static final byte[]
private static final String
private static final HBaseTestingUtility
private static final byte[]
private static final byte[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
checkAclTag
(byte[] acl, org.apache.hadoop.hbase.Cell cell) private void
createTableWithCoprocessor
(org.apache.hadoop.hbase.TableName tableName, String coprocessor) static void
static void
void
void
void
void
-
Field Details
-
CLASS_RULE
-
name
-
LOG
-
UTIL
-
connection
-
ROW
-
CF1
- See Also:
-
CF1_BYTES
-
CF2
- See Also:
-
CF2_BYTES
-
CF_NOT_EXIST
- See Also:
-
CF_NOT_EXIST_BYTES
-
CQ1
-
CQ2
-
VALUE
-
VALUE2
-
USER
- See Also:
-
PERMS
-
-
Constructor Details
-
TestPostIncrementAndAppendBeforeWAL
public TestPostIncrementAndAppendBeforeWAL()
-
-
Method Details
-
setupBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
createTableWithCoprocessor
private void createTableWithCoprocessor(org.apache.hadoop.hbase.TableName tableName, String coprocessor) throws IOException - Throws:
IOException
-
testChangeCellWithDifferntColumnFamily
- Throws:
Exception
-
testChangeCellWithNotExistColumnFamily
- Throws:
Exception
-
testIncrementTTLWithACLTag
- Throws:
Exception
-
testAppendTTLWithACLTag
- Throws:
Exception
-
checkAclTag
-