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
Exception
public static void shutdownCluster() throws IOException
IOException
public void testTTLCleaner() throws IOException, InterruptedException
IOException
InterruptedException
public void testManualMobCleanerStopsMobRemoval() throws IOException
IOException
public void testManualMobCleanerLetsNonMobGo() throws IOException
IOException
private String getFileStats(org.apache.hadoop.fs.Path file, org.apache.hadoop.fs.FileSystem fs) throws IOException
file
- to checkIOException
public void testHFileCleaning() throws Exception
Exception
public void testRemovesEmptyDirectories() throws Exception
Exception
public void testThreadCleanup() throws Exception
Exception
public void testLargeSmallIsolation() throws Exception
Exception
public void testOnConfigurationChange() throws Exception
Exception
private void createFilesForTesting(int largeFileNum, int smallFileNum, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path archivedHfileDir) throws IOException
IOException
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.