public class TestLogsCleaner extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
TestLogsCleaner.DummyServer |
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 org.apache.hadoop.hbase.master.MasterServices |
masterServices |
private static org.apache.hadoop.fs.Path |
OLD_PROCEDURE_WALS_DIR |
private static org.apache.hadoop.fs.Path |
OLD_WALS_DIR |
private static String |
peerId |
private static org.apache.hadoop.hbase.master.cleaner.DirScanPool |
POOL |
private org.apache.hadoop.hbase.replication.ReplicationQueueStorage |
queueStorage |
TableNameTestRule |
tableNameRule |
private static HBaseTestingUtil |
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() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtil 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
private org.apache.hadoop.hbase.master.MasterServices masterServices
private org.apache.hadoop.hbase.replication.ReplicationQueueStorage queueStorage
public final TableNameTestRule tableNameRule
public TestLogsCleaner()
public static void setUpBeforeClass() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void beforeTest() throws Exception
Exception
public void testLogCleaning() throws Exception
Exception
public 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.