public class TestReplicationHFileCleaner extends Object
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
TestReplicationHFileCleaner.DummyServer |
(package private) static class |
TestReplicationHFileCleaner.FaultyZooKeeperWatcher |
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.conf.Configuration |
conf |
(package private) static org.apache.hadoop.fs.FileSystem |
fs |
private static org.slf4j.Logger |
LOG |
private static String |
peerId |
(package private) org.apache.hadoop.fs.Path |
root |
private static org.apache.hadoop.hbase.replication.ReplicationPeers |
rp |
private static org.apache.hadoop.hbase.replication.ReplicationQueueStorage |
rq |
private static org.apache.hadoop.hbase.Server |
server |
private static HBaseTestingUtility |
TEST_UTIL |
| Constructor and Description |
|---|
TestReplicationHFileCleaner() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup() |
void |
setup() |
static void |
setUpBeforeClass() |
static void |
tearDownAfterClass() |
void |
testGetDeletableFiles() |
void |
testIsFileDeletable() |
void |
testZooKeeperAbort()
ReplicationHFileCleaner should be able to ride over ZooKeeper errors without aborting.
|
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility TEST_UTIL
private static org.apache.hadoop.hbase.Server server
private static org.apache.hadoop.hbase.replication.ReplicationQueueStorage rq
private static org.apache.hadoop.hbase.replication.ReplicationPeers rp
private static final String peerId
private static org.apache.hadoop.conf.Configuration conf
static org.apache.hadoop.fs.FileSystem fs
org.apache.hadoop.fs.Path root
public TestReplicationHFileCleaner()
public static void setUpBeforeClass() throws Exception
Exceptionpublic static void tearDownAfterClass() throws Exception
Exceptionpublic void setup() throws org.apache.hadoop.hbase.replication.ReplicationException, IOException
org.apache.hadoop.hbase.replication.ReplicationExceptionIOExceptionpublic void cleanup() throws org.apache.hadoop.hbase.replication.ReplicationException
org.apache.hadoop.hbase.replication.ReplicationExceptionpublic void testIsFileDeletable() throws IOException, org.apache.hadoop.hbase.replication.ReplicationException
IOExceptionorg.apache.hadoop.hbase.replication.ReplicationExceptionpublic void testGetDeletableFiles() throws Exception
Exceptionpublic void testZooKeeperAbort() throws Exception
ExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.