Class TestHFileCleaner
java.lang.Object
org.apache.hadoop.hbase.master.cleaner.TestHFileCleaner
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final org.slf4j.Logger
private static String
private static org.apache.hadoop.hbase.master.cleaner.DirScanPool
private static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate 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
static void
void
void
void
void
void
void
void
void
-
Field Details
-
CLASS_RULE
-
LOG
-
UTIL
-
POOL
-
MOCK_ARCHIVED_HFILE_DIR
-
-
Constructor Details
-
TestHFileCleaner
public TestHFileCleaner()
-
-
Method Details
-
setupCluster
- Throws:
Exception
-
shutdownCluster
- Throws:
IOException
-
testTTLCleaner
- Throws:
IOException
-
testManualMobCleanerStopsMobRemoval
- Throws:
IOException
-
testManualMobCleanerLetsNonMobGo
- Throws:
IOException
-
getFileStats
private String getFileStats(org.apache.hadoop.fs.Path file, org.apache.hadoop.fs.FileSystem fs) throws IOException - Parameters:
file
- to check- Returns:
- loggable information about the file
- Throws:
IOException
-
testHFileCleaning
- Throws:
Exception
-
testRemovesEmptyDirectories
- Throws:
Exception
-
testThreadCleanup
- Throws:
Exception
-
testLargeSmallIsolation
- Throws:
Exception
-
testOnConfigurationChange
- Throws:
Exception
-
createFilesForTesting
private void createFilesForTesting(int largeFileNum, int smallFileNum, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path archivedHfileDir) throws IOException - Throws:
IOException
-