Class TestTakeSnapshotHandler
java.lang.Object
org.apache.hadoop.hbase.master.snapshot.TestTakeSnapshotHandler
Unfortunately, couldn't test TakeSnapshotHandler using mocks, because it relies on TableLock,
which is tightly coupled to LockManager and LockProcedure classes, which are both final and
prevents us from mocking its behaviour. Looks like an overkill having to emulate a whole cluster
run for such a small optional property behaviour.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
org.junit.rules.TestName
private static HBaseTestingUtil
-
Constructor Summary
-
Method Summary
-
Field Details
-
UTIL
-
CLASS_RULE
-
name
-
-
Constructor Details
-
TestTakeSnapshotHandler
public TestTakeSnapshotHandler()
-
-
Method Details
-
setup
-
createTableInsertDataAndTakeSnapshot
public org.apache.hadoop.hbase.client.TableDescriptor createTableInsertDataAndTakeSnapshot(Map<String, Object> snapshotProps) throws Exception- Throws:
Exception
-
testPreparePreserveMaxFileSizeEnabled
- Throws:
Exception
-
testPreparePreserveMaxFileSizeDisabled
- Throws:
Exception
-
shutdown
- Throws:
Exception
-