Package org.apache.hadoop.hbase.client
Class TestSnapshotFromClient
java.lang.Object
org.apache.hadoop.hbase.client.TestSnapshotFromClient
- Direct Known Subclasses:
- TestMobSnapshotFromClient,- TestSnapshotFromClientWithRegionReplicas
Test create/using/deleting snapshots from the client
 
This is an end-to-end test for the snapshot utility
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static final org.slf4j.Loggerprivate static final Patternprotected static final intprotected static final Stringprotected static final org.apache.hadoop.hbase.TableNameprotected static final byte[]org.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileTrackerFactory.Trackersprotected static final HBaseTestingUtility
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidprotected voidprotected intparams()voidsetup()static voidSetup the config for the clusterprotected static voidsetupConf(org.apache.hadoop.conf.Configuration conf) voidtearDown()voidvoidvoidvoidvoidTest snapshotting not allowed hbase:meta and -ROOT-voidTest snapshotting a table that is offlinevoidvoidTest HBaseAdmin#deleteSnapshots(String) which deletes snapshots whose names match the parametervoid
- 
Field Details- 
CLASS_RULE
- 
LOG
- 
UTIL
- 
NUM_RS- See Also:
 
- 
STRING_TABLE_NAME- See Also:
 
- 
TEST_FAM
- 
TABLE_NAME
- 
MATCH_ALL
- 
name
- 
trackerImplpublic org.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileTrackerFactory.Trackers trackerImpl
 
- 
- 
Constructor Details- 
TestSnapshotFromClientpublic TestSnapshotFromClient()
 
- 
- 
Method Details- 
params
- 
setupClusterSetup the config for the cluster- Throws:
- Exception- on failure
 
- 
setupConf
- 
setup- Throws:
- Exception
 
- 
createTable- Throws:
- Exception
 
- 
getNumReplicas
- 
tearDown- Throws:
- Exception
 
- 
cleanupTest- Throws:
- Exception
 
- 
testMetaTablesSnapshotTest snapshotting not allowed hbase:meta and -ROOT-- Throws:
- Exception
 
- 
testSnapshotDeletionWithRegexTest HBaseAdmin#deleteSnapshots(String) which deletes snapshots whose names match the parameter- Throws:
- Exception
 
- 
testOfflineTableSnapshotTest snapshotting a table that is offline- Throws:
- Exception
 
- 
testSnapshotFailsOnNonExistantTable- Throws:
- Exception
 
- 
testOfflineTableSnapshotWithEmptyRegions- Throws:
- Exception
 
- 
testListTableSnapshots- Throws:
- Exception
 
- 
testListTableSnapshotsWithRegex- Throws:
- Exception
 
- 
testDeleteTableSnapshots- Throws:
- Exception
 
- 
testDeleteTableSnapshotsWithRegex- Throws:
- Exception
 
 
-