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
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final org.slf4j.Logger
private static final Pattern
protected static final int
protected static final String
protected static final org.apache.hadoop.hbase.TableName
protected static final byte[]
org.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileTrackerFactory.Trackers
protected static final HBaseTestingUtility
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
protected void
protected int
params()
void
setup()
static void
Setup the config for the clusterprotected static void
setupConf
(org.apache.hadoop.conf.Configuration conf) void
tearDown()
void
void
void
void
void
Test snapshotting not allowed hbase:meta and -ROOT-void
Test snapshotting a table that is offlinevoid
void
Test 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
-