public class TestSnapshotMetadata extends Object
Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.hbase.client.Admin |
admin |
private static int |
BLOCK_SIZE |
private static byte[] |
BLOCKSIZE_FAM |
private static String |
BLOCKSIZE_FAM_STR |
private static org.apache.hadoop.hbase.regionserver.BloomType |
BLOOM_TYPE |
private static byte[] |
BLOOMFILTER_FAM |
private static String |
BLOOMFILTER_FAM_STR |
static HBaseClassTestRule |
CLASS_RULE |
private static byte[] |
COMPRESSED_FAM |
private static String |
COMPRESSED_FAM_STR |
private static org.apache.hadoop.hbase.io.encoding.DataBlockEncoding |
DATA_BLOCK_ENCODING_TYPE |
private static byte[][] |
families |
private static org.apache.hadoop.fs.FileSystem |
fs |
private static org.slf4j.Logger |
LOG |
private static int |
MAX_VERSIONS |
private static byte[] |
MAX_VERSIONS_FAM |
private static String |
MAX_VERSIONS_FAM_STR |
private static int |
NUM_RS |
private String |
originalTableDescription |
private org.apache.hadoop.hbase.HTableDescriptor |
originalTableDescriptor |
(package private) org.apache.hadoop.hbase.TableName |
originalTableName |
private static org.apache.hadoop.fs.Path |
rootDir |
private static String |
STRING_TABLE_NAME |
private static String |
TEST_CONF_CUSTOM_VALUE |
private static String |
TEST_CUSTOM_VALUE |
private static HBaseTestingUtility |
UTIL |
Constructor and Description |
---|
TestSnapshotMetadata() |
Modifier and Type | Method and Description |
---|---|
static void |
cleanupTest() |
private void |
createTableWithNonDefaultProperties() |
private void |
runRestoreWithAdditionalMetadata(boolean changeMetadata) |
private void |
runRestoreWithAdditionalMetadata(boolean changeMetadata,
boolean addData) |
void |
setup() |
static void |
setupCluster() |
private static void |
setupConf(org.apache.hadoop.conf.Configuration conf) |
void |
tearDown() |
void |
testDescribeMatchesAfterClone()
Verify that the describe for a cloned table matches the describe from the original.
|
void |
testDescribeMatchesAfterMetadataChangeAndRestore()
Verify that if metadata changed after a snapshot was taken, that the old metadata replaces the
new metadata during a restore
|
void |
testDescribeMatchesAfterRestore()
Verify that the describe for a restored table matches the describe for one the original.
|
void |
testDescribeOnEmptyTableMatchesAfterMetadataChangeAndRestore()
Verify that when the table is empty, making metadata changes after the restore does not affect
the restored table's original metadata
|
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility UTIL
private static final int NUM_RS
private static final String STRING_TABLE_NAME
private static final String MAX_VERSIONS_FAM_STR
private static final byte[] MAX_VERSIONS_FAM
private static final String COMPRESSED_FAM_STR
private static final byte[] COMPRESSED_FAM
private static final String BLOCKSIZE_FAM_STR
private static final byte[] BLOCKSIZE_FAM
private static final String BLOOMFILTER_FAM_STR
private static final byte[] BLOOMFILTER_FAM
private static final String TEST_CONF_CUSTOM_VALUE
private static final String TEST_CUSTOM_VALUE
private static final byte[][] families
private static final org.apache.hadoop.hbase.io.encoding.DataBlockEncoding DATA_BLOCK_ENCODING_TYPE
private static final org.apache.hadoop.hbase.regionserver.BloomType BLOOM_TYPE
private static final int BLOCK_SIZE
private static final int MAX_VERSIONS
private org.apache.hadoop.hbase.client.Admin admin
private String originalTableDescription
private org.apache.hadoop.hbase.HTableDescriptor originalTableDescriptor
org.apache.hadoop.hbase.TableName originalTableName
private static org.apache.hadoop.fs.FileSystem fs
private static org.apache.hadoop.fs.Path rootDir
public TestSnapshotMetadata()
public static void setupCluster() throws Exception
Exception
public static void cleanupTest() throws Exception
Exception
private static void setupConf(org.apache.hadoop.conf.Configuration conf)
private void createTableWithNonDefaultProperties() throws Exception
Exception
public void testDescribeMatchesAfterClone() throws Exception
Exception
public void testDescribeMatchesAfterRestore() throws Exception
Exception
public void testDescribeMatchesAfterMetadataChangeAndRestore() throws Exception
Exception
public void testDescribeOnEmptyTableMatchesAfterMetadataChangeAndRestore() throws Exception
Exception
private void runRestoreWithAdditionalMetadata(boolean changeMetadata) throws Exception
Exception
private void runRestoreWithAdditionalMetadata(boolean changeMetadata, boolean addData) throws Exception
Exception
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.