Class TestFullTableBackupClientLogBoundaries
java.lang.Object
org.apache.hadoop.hbase.backup.impl.TestFullTableBackupClientLogBoundaries
@Tag("org.apache.hadoop.hbase.testclassification.SmallTests")
public class TestFullTableBackupClientLogBoundaries
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.hadoop.fs.FileSystemprivate static final HBaseTestingUtilprivate org.apache.hadoop.fs.Path -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncomputeLogBoundaries(Map<String, Long> rolledHosts, Set<org.apache.hadoop.hbase.ServerName> liveServers) private voidcreateWAL(org.apache.hadoop.fs.Path dir, org.apache.hadoop.hbase.ServerName serverName, long ts) voidsetUp()voidtearDown()voidvoidvoidvoidvoidvoidprivate org.apache.hadoop.fs.PathwalDir(org.apache.hadoop.hbase.ServerName serverName) private static StringwalName(org.apache.hadoop.hbase.ServerName serverName, long ts)
-
Field Details
-
TEST_UTIL
-
fs
-
walRootDir
-
-
Constructor Details
-
TestFullTableBackupClientLogBoundaries
-
-
Method Details
-
setUp
- Throws:
IOException
-
tearDown
- Throws:
IOException
-
testLiveServerWithoutRollResultIsCappedBelowItsOldestWAL
- Throws:
IOException
-
testDeadServerGetsItsNewestWAL
- Throws:
IOException
-
testRestartedServerCoversOldInstanceOnly
- Throws:
IOException
-
testRolledServerKeepsItsRollResult
- Throws:
IOException
-
testServerRegisteringAfterTheListingGetsNoBoundary
- Throws:
IOException
-
testIncompleteLiveServerListFailsTheBackup
- Throws:
IOException
-
computeLogBoundaries
private Map<String,Long> computeLogBoundaries(Map<String, Long> rolledHosts, Set<org.apache.hadoop.hbase.ServerName> liveServers) throws IOException- Throws:
IOException
-
walDir
-
createWAL
private void createWAL(org.apache.hadoop.fs.Path dir, org.apache.hadoop.hbase.ServerName serverName, long ts) throws IOException - Throws:
IOException
-
walName
-