Class TestHFileCleaner
java.lang.Object
org.apache.hadoop.hbase.master.cleaner.TestHFileCleaner
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static final org.slf4j.Loggerprivate static Stringprivate static org.apache.hadoop.hbase.master.cleaner.DirScanPoolprivate static final HBaseTestingUtility -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcreateFilesForTesting(int largeFileNum, int smallFileNum, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path archivedHfileDir) private StringgetFileStats(org.apache.hadoop.fs.Path file, org.apache.hadoop.fs.FileSystem fs) static voidstatic voidvoidvoidvoidvoidvoidvoidvoidvoid
-
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:
IOExceptionInterruptedException
-
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
-