public class TestSnapshotCloneIndependence extends Object
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
protected static int |
NUM_RS |
protected static byte[] |
TEST_FAM |
org.junit.rules.TestName |
testName |
protected static HBaseTestingUtility |
UTIL |
| Constructor and Description |
|---|
TestSnapshotCloneIndependence() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cleanupTest() |
protected int |
countRows(Table table,
byte[]... families) |
protected Table |
createTable(TableName table,
byte[] family) |
void |
loadData(Table table,
byte[]... families) |
void |
setup() |
static void |
setupCluster()
Setup the config for the cluster and start it
|
void |
tearDown() |
void |
testOfflineSnapshotAppendIndependent()
Verify that adding data to the cloned table will not affect the original, and vice-versa when
it is taken as an offline snapshot.
|
void |
testOfflineSnapshotDeleteIndependent() |
void |
testOfflineSnapshotMetadataChangesIndependent()
Verify that adding netadata to the cloned table will not affect the original, and vice-versa
when is taken as an online snapshot.
|
void |
testOfflineSnapshotRegionOperationsIndependent()
Verify that region operations, in this case splitting a region, are independent between the
cloned table and the original.
|
void |
testOnlineSnapshotAppendIndependent()
Verify that adding data to the cloned table will not affect the original, and vice-versa when
it is taken as an online snapshot.
|
void |
testOnlineSnapshotDeleteIndependent() |
void |
testOnlineSnapshotMetadataChangesIndependent()
Verify that adding metadata to the cloned table will not affect the original, and vice-versa
when it is taken as an online snapshot.
|
void |
testOnlineSnapshotRegionOperationsIndependent()
Verify that region operations, in this case splitting a region, are independent between the
cloned table and the original.
|
public static final HBaseClassTestRule CLASS_RULE
public org.junit.rules.TestName testName
protected static final HBaseTestingUtility UTIL
protected static final int NUM_RS
protected static final byte[] TEST_FAM
public TestSnapshotCloneIndependence()
public static void setupCluster() throws Exception
Exceptionpublic static void cleanupTest() throws Exception
Exceptionpublic void testOnlineSnapshotAppendIndependent() throws Exception
Exceptionpublic void testOfflineSnapshotAppendIndependent() throws Exception
Exceptionpublic void testOnlineSnapshotMetadataChangesIndependent() throws Exception
Exceptionpublic void testOfflineSnapshotMetadataChangesIndependent() throws Exception
Exceptionpublic void testOfflineSnapshotRegionOperationsIndependent() throws Exception
Exceptionpublic void testOnlineSnapshotRegionOperationsIndependent() throws Exception
Exceptionpublic void testOfflineSnapshotDeleteIndependent() throws Exception
Exceptionpublic void testOnlineSnapshotDeleteIndependent() throws Exception
Exceptionprotected Table createTable(TableName table, byte[] family) throws Exception
ExceptionCopyright © 2007–2019 Cloudera. All rights reserved.