public class TestSnapshotCloneIndependence
extends java.lang.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 java.lang.Exception
java.lang.Exception - on failureprotected static void setupConf(Configuration conf)
public void setup()
throws java.lang.Exception
java.lang.Exceptionpublic void tearDown()
throws java.lang.Exception
java.lang.Exceptionpublic static void cleanupTest()
throws java.lang.Exception
java.lang.Exceptionpublic void testOnlineSnapshotAppendIndependent()
throws java.lang.Exception
java.lang.Exceptionpublic void testOfflineSnapshotAppendIndependent()
throws java.lang.Exception
java.lang.Exceptionpublic void testOnlineSnapshotMetadataChangesIndependent()
throws java.lang.Exception
java.lang.Exceptionpublic void testOfflineSnapshotMetadataChangesIndependent()
throws java.lang.Exception
java.lang.Exceptionpublic void testOfflineSnapshotRegionOperationsIndependent()
throws java.lang.Exception
java.lang.Exceptionpublic void testOnlineSnapshotRegionOperationsIndependent()
throws java.lang.Exception
java.lang.Exceptionpublic void testOfflineSnapshotDeleteIndependent()
throws java.lang.Exception
java.lang.Exceptionpublic void testOnlineSnapshotDeleteIndependent()
throws java.lang.Exception
java.lang.Exceptionprotected Table createTable(TableName table, byte[] family) throws java.lang.Exception
java.lang.Exceptionprotected void loadData(Table table, byte[]... families) throws java.lang.Exception
java.lang.Exceptionprotected int countRows(Table table, byte[]... families) throws java.lang.Exception
java.lang.Exception