public class TestLogsCleaner extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
TestLogsCleaner.DummyServer |
(package private) static class |
TestLogsCleaner.FaultyZooKeeperWatcher |
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.conf.Configuration |
conf |
private static org.slf4j.Logger |
LOG |
private static org.apache.hadoop.fs.Path |
OLD_PROCEDURE_WALS_DIR |
private static org.apache.hadoop.fs.Path |
OLD_WALS_DIR |
private static org.apache.hadoop.hbase.master.cleaner.DirScanPool |
POOL |
private static HBaseTestingUtility |
TEST_UTIL |
Constructor and Description |
---|
TestLogsCleaner() |
Modifier and Type | Method and Description |
---|---|
void |
beforeTest() |
private void |
createFiles(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path parentDir,
int numOfFiles) |
static void |
setUpBeforeClass() |
static void |
tearDownAfterClass() |
void |
testLogCleaning()
This tests verifies LogCleaner works correctly with WALs and Procedure WALs located in the same
oldWALs directory.
|
void |
testOnConfigurationChange() |
void |
testZooKeeperAbort()
ReplicationLogCleaner should be able to ride over ZooKeeper errors without aborting.
|
void |
testZooKeeperNormal()
When zk is working both files should be returned
|
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility TEST_UTIL
private static final org.apache.hadoop.fs.Path OLD_WALS_DIR
private static final org.apache.hadoop.fs.Path OLD_PROCEDURE_WALS_DIR
private static org.apache.hadoop.conf.Configuration conf
private static org.apache.hadoop.hbase.master.cleaner.DirScanPool POOL
public TestLogsCleaner()
public static void setUpBeforeClass() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void beforeTest() throws IOException
IOException
public void testLogCleaning() throws Exception
Exception
public void testZooKeeperAbort() throws Exception
Exception
public void testZooKeeperNormal() throws Exception
Exception
- from ZK watcherpublic void testOnConfigurationChange() throws Exception
Exception
private void createFiles(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path parentDir, int numOfFiles) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.