public class TestSnapshotCloneIndependence extends Object
Modifier and Type | Field and Description |
---|---|
protected static int |
NUM_RS |
protected static TableName |
TABLE_NAME |
protected static byte[] |
TEST_FAM |
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.
|
protected static final HBaseTestingUtility UTIL
protected static final int NUM_RS
protected static final byte[] TEST_FAM
protected static final TableName TABLE_NAME
public static void setupCluster() throws Exception
Exception
- on failureprotected static void setupConf(Configuration conf)
public void testOnlineSnapshotAppendIndependent() throws Exception
Exception
public void testOfflineSnapshotAppendIndependent() throws Exception
Exception
public void testOnlineSnapshotMetadataChangesIndependent() throws Exception
Exception
public void testOfflineSnapshotMetadataChangesIndependent() throws Exception
Exception
public void testOfflineSnapshotRegionOperationsIndependent() throws Exception
Exception
public void testOnlineSnapshotRegionOperationsIndependent() throws Exception
Exception
public void testOfflineSnapshotDeleteIndependent() throws Exception
Exception
public void testOnlineSnapshotDeleteIndependent() throws Exception
Exception
protected Table createTable(TableName table, byte[] family) throws Exception
Exception
protected void loadData(Table table, byte[]... families) throws Exception
Exception