public class TestExportSnapshot
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static byte[] |
FAMILY |
protected TableName |
tableName |
protected static HBaseTestingUtility |
TEST_UTIL |
| Constructor and Description |
|---|
TestExportSnapshot() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
bypassRegion(HRegionInfo regionInfo) |
protected void |
createTable() |
void |
setUp()
Create a table and take a snapshot of the table used by the export test.
|
static void |
setUpBaseConf(Configuration conf) |
static void |
setUpBeforeClass() |
void |
tearDown() |
static void |
tearDownAfterClass() |
void |
testBalanceSplit()
Verfy the result of getBalanceSplits() method.
|
void |
testConsecutiveExports() |
void |
testEmptyExportFileSystemState() |
void |
testExportFailure()
Check that ExportSnapshot will return a failure if something fails.
|
void |
testExportFileSystemState()
Verify if exported snapshot and copied files matches the original one.
|
void |
testExportFileSystemStateWithSkipTmp() |
void |
testExportRetry()
Check that ExportSnapshot will succede if something fails but the retry succede.
|
void |
testExportWithTargetName() |
void |
testSnapshotWithRefsExportFileSystemState()
Mock a snapshot with files in the archive dir,
two regions, and one reference file.
|
protected static final HBaseTestingUtility TEST_UTIL
protected static final byte[] FAMILY
protected TableName tableName
public static void setUpBaseConf(Configuration conf)
public static void setUpBeforeClass()
throws java.lang.Exception
java.lang.Exceptionpublic static void tearDownAfterClass()
throws java.lang.Exception
java.lang.Exceptionpublic void setUp()
throws java.lang.Exception
java.lang.Exceptionprotected void createTable()
throws java.lang.Exception
java.lang.Exceptionpublic void tearDown()
throws java.lang.Exception
java.lang.Exceptionpublic void testBalanceSplit()
throws java.lang.Exception
java.lang.Exceptionpublic void testExportFileSystemState()
throws java.lang.Exception
java.lang.Exceptionpublic void testExportFileSystemStateWithSkipTmp()
throws java.lang.Exception
java.lang.Exceptionpublic void testEmptyExportFileSystemState()
throws java.lang.Exception
java.lang.Exceptionpublic void testConsecutiveExports()
throws java.lang.Exception
java.lang.Exceptionpublic void testExportWithTargetName()
throws java.lang.Exception
java.lang.Exceptionpublic void testSnapshotWithRefsExportFileSystemState()
throws java.lang.Exception
java.lang.Exceptionpublic void testExportFailure()
throws java.lang.Exception
java.lang.Exceptionpublic void testExportRetry()
throws java.lang.Exception
java.lang.Exceptionprotected boolean bypassRegion(HRegionInfo regionInfo)