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 SummaryFieldsModifier and TypeFieldDescriptionprivate org.apache.hadoop.hbase.client.Adminprivate static final intprivate static final byte[]private static final Stringprivate static final org.apache.hadoop.hbase.regionserver.BloomTypeprivate static final byte[]private static final Stringstatic final HBaseClassTestRuleprivate static final byte[]private static final Stringprivate static final org.apache.hadoop.hbase.io.encoding.DataBlockEncodingprivate static final byte[][]private static org.apache.hadoop.fs.FileSystemprivate static final org.slf4j.Loggerprivate static final intprivate static final byte[]private static final Stringprivate static final intprivate Stringprivate org.apache.hadoop.hbase.client.TableDescriptor(package private) org.apache.hadoop.hbase.TableNameprivate static org.apache.hadoop.fs.Pathprivate static final Stringprivate static final Stringprivate static final Stringprivate static final HBaseTestingUtil
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidprivate voidprivate voidrunRestoreWithAdditionalMetadata(boolean changeMetadata) private voidrunRestoreWithAdditionalMetadata(boolean changeMetadata, boolean addData) voidsetup()static voidprivate static voidsetupConf(org.apache.hadoop.conf.Configuration conf) voidtearDown()voidVerify that the describe for a cloned table matches the describe from the original.voidVerify that if metadata changed after a snapshot was taken, that the old metadata replaces the new metadata during a restorevoidVerify that the describe for a restored table matches the describe for one the original.voidVerify 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
- 
originalTableNameorg.apache.hadoop.hbase.TableName originalTableName
- 
fs
- 
rootDir
 
- 
- 
Constructor Details- 
TestSnapshotMetadatapublic TestSnapshotMetadata()
 
- 
- 
Method Details- 
setupCluster- Throws:
- Exception
 
- 
cleanupTest- Throws:
- Exception
 
- 
setupConf
- 
setup- Throws:
- Exception
 
- 
tearDown- Throws:
- Exception
 
- 
createTableWithNonDefaultProperties- Throws:
- Exception
 
- 
testDescribeMatchesAfterCloneVerify that the describe for a cloned table matches the describe from the original.- Throws:
- Exception
 
- 
testDescribeMatchesAfterRestoreVerify that the describe for a restored table matches the describe for one the original.- Throws:
- Exception
 
- 
testDescribeMatchesAfterMetadataChangeAndRestoreVerify that if metadata changed after a snapshot was taken, that the old metadata replaces the new metadata during a restore- Throws:
- Exception
 
- 
testDescribeOnEmptyTableMatchesAfterMetadataChangeAndRestoreVerify 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
 
- 
runRestoreWithAdditionalMetadataprivate void runRestoreWithAdditionalMetadata(boolean changeMetadata, boolean addData) throws Exception - Throws:
- Exception
 
 
-