Package org.apache.hadoop.hbase.client
Class SnapshotFromClientTestBase
java.lang.Object
org.apache.hadoop.hbase.client.SnapshotFromClientTestBase
- Direct Known Subclasses:
TestMobSnapshotFromClient,TestSnapshotFromClient,TestSnapshotFromClientWithRegionReplicas
Test create/using/deleting snapshots from the client
This is an end-to-end test for the snapshot utility
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate static final Patternprotected TableNameTestExtensionprotected static final intprotected static final Stringprotected static final org.apache.hadoop.hbase.TableNameprotected static final byte[]protected final org.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileTrackerFactory.Trackersprotected static final HBaseTestingUtil -
Constructor Summary
ConstructorsConstructorDescriptionSnapshotFromClientTestBase(org.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileTrackerFactory.Trackers trackerImpl) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidprotected voidprotected intstatic Stream<org.junit.jupiter.params.provider.Arguments>voidsetup()protected 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
-
LOG
-
UTIL
-
NUM_RS
- See Also:
-
STRING_TABLE_NAME
- See Also:
-
TEST_FAM
-
TABLE_NAME
-
MATCH_ALL
-
name
-
trackerImpl
protected final org.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileTrackerFactory.Trackers trackerImpl
-
-
Constructor Details
-
SnapshotFromClientTestBase
public SnapshotFromClientTestBase(org.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileTrackerFactory.Trackers trackerImpl)
-
-
Method Details
-
parameters
-
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
-