public class TestPostIncrementAndAppendBeforeWAL extends Object
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.Modifier and Type | Class and Description |
---|---|
static class |
TestPostIncrementAndAppendBeforeWAL.ChangeCellWithACLTagObserver |
static class |
TestPostIncrementAndAppendBeforeWAL.ChangeCellWithDifferntColumnFamilyObserver |
static class |
TestPostIncrementAndAppendBeforeWAL.ChangeCellWithNotExistColumnFamilyObserver |
Modifier and Type | Field and Description |
---|---|
private static String |
CF_NOT_EXIST |
private static byte[] |
CF_NOT_EXIST_BYTES |
private static String |
CF1 |
private static byte[] |
CF1_BYTES |
private static String |
CF2 |
private static byte[] |
CF2_BYTES |
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.hbase.client.Connection |
connection |
private static byte[] |
CQ1 |
private static byte[] |
CQ2 |
private static org.slf4j.Logger |
LOG |
org.junit.rules.TestName |
name |
private static org.apache.hadoop.hbase.security.access.Permission |
PERMS |
private static byte[] |
ROW |
private static String |
USER |
private static HBaseTestingUtility |
UTIL |
private static byte[] |
VALUE |
private static byte[] |
VALUE2 |
Constructor and Description |
---|
TestPostIncrementAndAppendBeforeWAL() |
Modifier and Type | Method and Description |
---|---|
private static boolean |
checkAclTag(byte[] acl,
org.apache.hadoop.hbase.Cell cell) |
private void |
createTableWithCoprocessor(org.apache.hadoop.hbase.TableName tableName,
String coprocessor) |
static void |
setupBeforeClass() |
static void |
tearDownAfterClass() |
void |
testAppendTTLWithACLTag() |
void |
testChangeCellWithDifferntColumnFamily() |
void |
testChangeCellWithNotExistColumnFamily() |
void |
testIncrementTTLWithACLTag() |
public static final HBaseClassTestRule CLASS_RULE
public org.junit.rules.TestName name
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility UTIL
private static org.apache.hadoop.hbase.client.Connection connection
private static final byte[] ROW
private static final String CF1
private static final byte[] CF1_BYTES
private static final String CF2
private static final byte[] CF2_BYTES
private static final String CF_NOT_EXIST
private static final byte[] CF_NOT_EXIST_BYTES
private static final byte[] CQ1
private static final byte[] CQ2
private static final byte[] VALUE
private static final byte[] VALUE2
private static final String USER
private static final org.apache.hadoop.hbase.security.access.Permission PERMS
public TestPostIncrementAndAppendBeforeWAL()
public static void setupBeforeClass() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
private void createTableWithCoprocessor(org.apache.hadoop.hbase.TableName tableName, String coprocessor) throws IOException
IOException
public void testChangeCellWithDifferntColumnFamily() throws Exception
Exception
public void testChangeCellWithNotExistColumnFamily() throws Exception
Exception
public void testIncrementTTLWithACLTag() throws Exception
Exception
public void testAppendTTLWithACLTag() throws Exception
Exception
private static boolean checkAclTag(byte[] acl, org.apache.hadoop.hbase.Cell cell)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.