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 Summary
FieldsModifier 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 HBaseTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier 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
-
trackerImpl
public org.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileTrackerFactory.Trackers trackerImpl
-
-
Constructor Details
-
TestSnapshotFromClient
public TestSnapshotFromClient()
-
-
Method Details
-
params
-
setupCluster
Setup the config for the cluster- Throws:
Exception- on failure
-
setupConf
-
setup
- Throws:
Exception
-
createTable
- Throws:
Exception
-
getNumReplicas
-
tearDown
- Throws:
Exception
-
cleanupTest
- Throws:
Exception
-
testMetaTablesSnapshot
Test snapshotting not allowed hbase:meta and -ROOT-- Throws:
Exception
-
testSnapshotDeletionWithRegex
Test HBaseAdmin#deleteSnapshots(String) which deletes snapshots whose names match the parameter- Throws:
Exception
-
testOfflineTableSnapshot
Test 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
-