Package org.apache.hadoop.hbase.backup
Class TestBackupSystemTable
java.lang.Object
org.apache.hadoop.hbase.backup.TestBackupSystemTable
Test cases for backup system table API
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
protected static SingleProcessHBaseCluster
protected static org.apache.hadoop.conf.Configuration
protected static org.apache.hadoop.hbase.client.Connection
protected org.apache.hadoop.hbase.backup.impl.BackupSystemTable
private static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
after()
void
before()
private void
private boolean
compare
(org.apache.hadoop.hbase.backup.BackupInfo one, org.apache.hadoop.hbase.backup.BackupInfo two) private org.apache.hadoop.hbase.backup.BackupInfo
private List<org.apache.hadoop.hbase.backup.BackupInfo>
createBackupInfoList
(int size) static void
setUp()
static void
tearDown()
void
void
void
void
void
Backup set testsvoid
void
void
void
void
void
void
void
void
-
Field Details
-
CLASS_RULE
-
UTIL
-
conf
-
cluster
-
conn
-
table
-
-
Constructor Details
-
TestBackupSystemTable
public TestBackupSystemTable()
-
-
Method Details
-
setUp
- Throws:
Exception
-
before
- Throws:
IOException
-
after
-
testUpdateReadDeleteBackupStatus
- Throws:
IOException
-
testWriteReadBackupStartCode
- Throws:
IOException
-
cleanBackupTable
- Throws:
IOException
-
testBackupHistory
- Throws:
Exception
-
testBackupDelete
- Throws:
Exception
-
testRegionServerLastLogRollResults
- Throws:
IOException
-
testIncrementalBackupTableSet
- Throws:
IOException
-
testRegionServerLogTimestampMap
- Throws:
IOException
-
testBackupSetAddNotExists
Backup set tests- Throws:
IOException
-
testBackupSetAddExists
- Throws:
IOException
-
testBackupSetAddExistsIntersects
- Throws:
IOException
-
testBackupSetRemoveSomeNotExists
- Throws:
IOException
-
testBackupSetRemove
- Throws:
IOException
-
testBackupSetDelete
- Throws:
IOException
-
testBackupSetList
- Throws:
IOException
-
compare
private boolean compare(org.apache.hadoop.hbase.backup.BackupInfo one, org.apache.hadoop.hbase.backup.BackupInfo two) -
createBackupInfo
-
createBackupInfoList
private List<org.apache.hadoop.hbase.backup.BackupInfo> createBackupInfoList(int size) throws InterruptedException - Throws:
InterruptedException
-
tearDown
- Throws:
IOException
-