public class TestEncryptionKeyRotation extends Object
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.conf.Configuration |
conf |
private static Key |
initialCFKey |
private static org.slf4j.Logger |
LOG |
org.junit.rules.TestName |
name |
private static Key |
secondCFKey |
private static HBaseTestingUtility |
TEST_UTIL |
| Constructor and Description |
|---|
TestEncryptionKeyRotation() |
| Modifier and Type | Method and Description |
|---|---|
private void |
createTableAndFlush(org.apache.hadoop.hbase.HTableDescriptor htd) |
private static byte[] |
extractHFileKey(org.apache.hadoop.fs.Path path) |
private static List<org.apache.hadoop.fs.Path> |
findCompactedStorefilePaths(org.apache.hadoop.hbase.TableName tableName) |
private static List<org.apache.hadoop.fs.Path> |
findStorefilePaths(org.apache.hadoop.hbase.TableName tableName) |
static void |
setUp() |
static void |
tearDown() |
void |
testCFKeyRotation() |
void |
testMasterKeyRotation() |
private static void |
waitForCompaction(org.apache.hadoop.hbase.TableName tableName) |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility TEST_UTIL
private static final org.apache.hadoop.conf.Configuration conf
private static final Key initialCFKey
private static final Key secondCFKey
public org.junit.rules.TestName name
public TestEncryptionKeyRotation()
public void testCFKeyRotation() throws Exception
Exceptionpublic void testMasterKeyRotation() throws Exception
Exceptionprivate static void waitForCompaction(org.apache.hadoop.hbase.TableName tableName) throws IOException, InterruptedException
IOExceptionInterruptedExceptionprivate static List<org.apache.hadoop.fs.Path> findStorefilePaths(org.apache.hadoop.hbase.TableName tableName) throws Exception
Exceptionprivate static List<org.apache.hadoop.fs.Path> findCompactedStorefilePaths(org.apache.hadoop.hbase.TableName tableName) throws Exception
Exceptionprivate void createTableAndFlush(org.apache.hadoop.hbase.HTableDescriptor htd) throws Exception
Exceptionprivate static byte[] extractHFileKey(org.apache.hadoop.fs.Path path) throws Exception
ExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.