Class TestSnapshotManager
java.lang.Object
org.apache.hadoop.hbase.master.snapshot.TestSnapshotManager
Test basic snapshot manager functionality
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
(package private) org.apache.hadoop.hbase.procedure.ProcedureCoordinator
(package private) org.apache.hadoop.fs.FileSystem
(package private) org.apache.hadoop.hbase.master.MasterFileSystem
org.junit.rules.TestName
(package private) org.apache.hadoop.hbase.executor.ExecutorService
(package private) org.apache.hadoop.hbase.master.MasterServices
private static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.hadoop.fs.Path
getFamilyDirPath
(org.apache.hadoop.fs.Path rootDir, org.apache.hadoop.hbase.TableName table, String region, String family) private org.apache.hadoop.hbase.master.snapshot.SnapshotManager
private org.apache.hadoop.hbase.master.snapshot.SnapshotManager
getNewManager
(org.apache.hadoop.conf.Configuration conf) private org.apache.hadoop.hbase.master.snapshot.SnapshotManager
getNewManager
(org.apache.hadoop.conf.Configuration conf, int intervalSeconds) private boolean
isSnapshotSupported
(org.apache.hadoop.hbase.master.snapshot.SnapshotManager manager) void
void
void
void
Verify the snapshot support based on the configuration.
-
Field Details
-
CLASS_RULE
-
UTIL
-
name
-
services
org.apache.hadoop.hbase.master.MasterServices services -
coordinator
org.apache.hadoop.hbase.procedure.ProcedureCoordinator coordinator -
pool
org.apache.hadoop.hbase.executor.ExecutorService pool -
mfs
org.apache.hadoop.hbase.master.MasterFileSystem mfs -
fs
org.apache.hadoop.fs.FileSystem fs
-
-
Constructor Details
-
TestSnapshotManager
public TestSnapshotManager()
-
-
Method Details
-
getNewManager
private org.apache.hadoop.hbase.master.snapshot.SnapshotManager getNewManager() throws IOException, org.apache.zookeeper.KeeperException- Throws:
IOException
org.apache.zookeeper.KeeperException
-
getNewManager
private org.apache.hadoop.hbase.master.snapshot.SnapshotManager getNewManager(org.apache.hadoop.conf.Configuration conf) throws IOException, org.apache.zookeeper.KeeperException - Throws:
IOException
org.apache.zookeeper.KeeperException
-
getNewManager
private org.apache.hadoop.hbase.master.snapshot.SnapshotManager getNewManager(org.apache.hadoop.conf.Configuration conf, int intervalSeconds) throws IOException, org.apache.zookeeper.KeeperException - Throws:
IOException
org.apache.zookeeper.KeeperException
-
testCleanFinishedHandler
- Throws:
Exception
-
testInProcess
- Throws:
org.apache.zookeeper.KeeperException
IOException
-
testSnapshotSupportConfiguration
Verify the snapshot support based on the configuration.- Throws:
Exception
-
testDisableSnapshotAndNotDeleteBackReference
- Throws:
Exception
-
getFamilyDirPath
private org.apache.hadoop.fs.Path getFamilyDirPath(org.apache.hadoop.fs.Path rootDir, org.apache.hadoop.hbase.TableName table, String region, String family) -
isSnapshotSupported
private boolean isSnapshotSupported(org.apache.hadoop.hbase.master.snapshot.SnapshotManager manager)
-