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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final byte[]private static final Stringprivate static final byte[]private static final Stringprivate static final byte[]static final HBaseClassTestRuleprivate static org.apache.hadoop.hbase.client.Connectionprivate static final byte[]private static final byte[]private static final org.slf4j.Loggerorg.junit.rules.TestNameprivate static final org.apache.hadoop.hbase.security.access.Permissionprivate static final byte[]private static final Stringprivate static final HBaseTestingUtilprivate static final byte[]private static final byte[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static booleancheckAclTag(byte[] acl, org.apache.hadoop.hbase.ExtendedCell cell) private voidcreateTableWithCoprocessor(org.apache.hadoop.hbase.TableName tableName, String coprocessor) static voidstatic voidvoidvoidvoidvoid
-
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
-