public class TestHFileCleaner extends Object
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
TestHFileCleaner.DummyServer |
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.slf4j.Logger |
LOG |
private static org.apache.hadoop.hbase.master.cleaner.DirScanPool |
POOL |
private static HBaseTestingUtility |
UTIL |
| Constructor and Description |
|---|
TestHFileCleaner() |
| Modifier and Type | Method and Description |
|---|---|
private void |
createFilesForTesting(int largeFileNum,
int smallFileNum,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path archivedHfileDir) |
private String |
getFileStats(org.apache.hadoop.fs.Path file,
org.apache.hadoop.fs.FileSystem fs) |
static void |
setupCluster() |
static void |
shutdownCluster() |
void |
testHFileCleaning() |
void |
testLargeSmallIsolation() |
void |
testManualMobCleanerLetsNonMobGo() |
void |
testManualMobCleanerStopsMobRemoval() |
void |
testOnConfigurationChange() |
void |
testRemovesEmptyDirectories() |
void |
testThreadCleanup() |
void |
testTTLCleaner() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility UTIL
private static org.apache.hadoop.hbase.master.cleaner.DirScanPool POOL
public TestHFileCleaner()
public static void setupCluster() throws Exception
Exceptionpublic static void shutdownCluster() throws IOException
IOExceptionpublic void testTTLCleaner() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void testManualMobCleanerStopsMobRemoval() throws IOException
IOExceptionpublic void testManualMobCleanerLetsNonMobGo() throws IOException
IOExceptionprivate String getFileStats(org.apache.hadoop.fs.Path file, org.apache.hadoop.fs.FileSystem fs) throws IOException
file - to checkIOExceptionpublic void testHFileCleaning() throws Exception
Exceptionpublic void testRemovesEmptyDirectories() throws Exception
Exceptionpublic void testThreadCleanup() throws Exception
Exceptionpublic void testLargeSmallIsolation() throws Exception
Exceptionpublic void testOnConfigurationChange() throws Exception
Exceptionprivate void createFilesForTesting(int largeFileNum, int smallFileNum, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path archivedHfileDir) throws IOException
IOExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.