public class TestSnapshotFromAdmin extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.slf4j.Logger |
LOG |
org.junit.rules.TestName |
name |
Constructor and Description |
---|
TestSnapshotFromAdmin() |
Modifier and Type | Method and Description |
---|---|
private void |
failSnapshotDescriptorCreation(String snapshotName,
String tableName) |
private void |
failSnapshotStart(org.apache.hadoop.hbase.client.Admin admin,
org.apache.hadoop.hbase.client.SnapshotDescription snapshot) |
void |
testBackoffLogic()
Test that the logic for doing 'correct' back-off based on exponential increase and the max-time
passed from the server ensures the correct overall waiting for the snapshot to finish.
|
void |
testValidateSnapshotName()
Make sure that we validate the snapshot name and the table name before we pass anything across
the wire
|
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
public org.junit.rules.TestName name
public TestSnapshotFromAdmin()
public void testBackoffLogic() throws Exception
Exception
public void testValidateSnapshotName() throws Exception
Exception
- on failureprivate void failSnapshotStart(org.apache.hadoop.hbase.client.Admin admin, org.apache.hadoop.hbase.client.SnapshotDescription snapshot) throws IOException
IOException
private void failSnapshotDescriptorCreation(String snapshotName, String tableName)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.