public class TestSnapshotCloneIndependence extends Object
| Modifier and Type | Field and Description |
|---|---|
Timeout |
globalTimeout |
protected static int |
NUM_RS |
protected static byte[] |
TEST_FAM |
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) |
protected void |
loadData(Table table,
byte[]... families) |
void |
setup() |
static void |
setupCluster()
Setup the config for the cluster and start it
|
protected static void |
setupConf(Configuration conf) |
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 Timeout globalTimeout
public TestName testName
protected static final HBaseTestingUtility UTIL
protected static final int NUM_RS
protected static final byte[] TEST_FAM
public static void setupCluster()
throws Exception
Exception - on failureprotected static void setupConf(Configuration conf)
public 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
Exceptionprotected void loadData(Table table, byte[]... families) throws Exception
Exception