Package org.apache.hadoop.hbase.client
Class TestSnapshotMetadata
java.lang.Object
org.apache.hadoop.hbase.client.TestSnapshotMetadata
Test class to verify that metadata is consistent before and after a snapshot attempt.
-
Field Summary
Modifier and TypeFieldDescriptionprivate org.apache.hadoop.hbase.client.Admin
private static final int
private static final byte[]
private static final String
private static final org.apache.hadoop.hbase.regionserver.BloomType
private static final byte[]
private static final String
static final HBaseClassTestRule
private static final byte[]
private static final String
private static final org.apache.hadoop.hbase.io.encoding.DataBlockEncoding
private static final byte[][]
private static org.apache.hadoop.fs.FileSystem
private static final org.slf4j.Logger
private static final int
private static final byte[]
private static final String
private static final int
private String
private org.apache.hadoop.hbase.HTableDescriptor
(package private) org.apache.hadoop.hbase.TableName
private static org.apache.hadoop.fs.Path
private static final String
private static final String
private static final String
private static final HBaseTestingUtility
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
private void
private void
runRestoreWithAdditionalMetadata
(boolean changeMetadata) private void
runRestoreWithAdditionalMetadata
(boolean changeMetadata, boolean addData) void
setup()
static void
private static void
setupConf
(org.apache.hadoop.conf.Configuration conf) void
tearDown()
void
Verify that the describe for a cloned table matches the describe from the original.void
Verify that if metadata changed after a snapshot was taken, that the old metadata replaces the new metadata during a restorevoid
Verify that the describe for a restored table matches the describe for one the original.void
Verify that when the table is empty, making metadata changes after the restore does not affect the restored table's original metadata
-
Field Details
-
CLASS_RULE
-
LOG
-
UTIL
-
NUM_RS
- See Also:
-
STRING_TABLE_NAME
- See Also:
-
MAX_VERSIONS_FAM_STR
- See Also:
-
MAX_VERSIONS_FAM
-
COMPRESSED_FAM_STR
- See Also:
-
COMPRESSED_FAM
-
BLOCKSIZE_FAM_STR
- See Also:
-
BLOCKSIZE_FAM
-
BLOOMFILTER_FAM_STR
- See Also:
-
BLOOMFILTER_FAM
-
TEST_CONF_CUSTOM_VALUE
- See Also:
-
TEST_CUSTOM_VALUE
- See Also:
-
families
-
DATA_BLOCK_ENCODING_TYPE
-
BLOOM_TYPE
-
BLOCK_SIZE
- See Also:
-
MAX_VERSIONS
- See Also:
-
admin
-
originalTableDescription
-
originalTableDescriptor
-
originalTableName
org.apache.hadoop.hbase.TableName originalTableName -
fs
-
rootDir
-
-
Constructor Details
-
TestSnapshotMetadata
public TestSnapshotMetadata()
-
-
Method Details
-
setupCluster
- Throws:
Exception
-
cleanupTest
- Throws:
Exception
-
setupConf
-
setup
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
createTableWithNonDefaultProperties
- Throws:
Exception
-
testDescribeMatchesAfterClone
Verify that the describe for a cloned table matches the describe from the original.- Throws:
Exception
-
testDescribeMatchesAfterRestore
Verify that the describe for a restored table matches the describe for one the original.- Throws:
Exception
-
testDescribeMatchesAfterMetadataChangeAndRestore
Verify that if metadata changed after a snapshot was taken, that the old metadata replaces the new metadata during a restore- Throws:
Exception
-
testDescribeOnEmptyTableMatchesAfterMetadataChangeAndRestore
Verify that when the table is empty, making metadata changes after the restore does not affect the restored table's original metadata- Throws:
Exception
-
runRestoreWithAdditionalMetadata
- Throws:
Exception
-
runRestoreWithAdditionalMetadata
private void runRestoreWithAdditionalMetadata(boolean changeMetadata, boolean addData) throws Exception - Throws:
Exception
-