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.slf4j.Logger | 
LOG  | 
private static HBaseTestingUtility | 
TEST_UTIL  | 
| Constructor and Description | 
|---|
TestLogsCleaner()  | 
| Modifier and Type | Method and Description | 
|---|---|
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 | 
testZnodeCversionChange()  | 
void | 
testZooKeeperAbortDuringGetListOfReplicators()  | 
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
public TestLogsCleaner()
public static void setUpBeforeClass() throws Exception
Exceptionpublic static void tearDownAfterClass() throws Exception
Exceptionpublic void testLogCleaning() throws Exception
Exceptionpublic void testZnodeCversionChange() throws Exception
Exceptionpublic void testZooKeeperAbortDuringGetListOfReplicators() throws Exception
Exceptionpublic void testZooKeeperNormal() throws Exception
Exceptionpublic void testOnConfigurationChange() throws Exception
Exceptionprivate void createFiles(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path parentDir, int numOfFiles) throws IOException
IOExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.