Class TestHFileLinkCleaner
java.lang.Object
org.apache.hadoop.hbase.master.cleaner.TestHFileLinkCleaner
Test the HFileLink Cleaner. HFiles with links cannot be deleted until a link is present.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.hadoop.fs.Pathprivate org.apache.hadoop.fs.Pathprivate org.apache.hadoop.fs.FileStatus[]static final HBaseClassTestRuleprivate org.apache.hadoop.hbase.master.cleaner.HFileCleanerprivate org.apache.hadoop.conf.Configurationprivate org.apache.hadoop.fs.Pathprivate Stringprivate org.apache.hadoop.fs.Pathprivate org.apache.hadoop.fs.FileSystemprivate Stringprivate Stringprivate org.apache.hadoop.fs.Pathprivate org.apache.hadoop.hbase.client.RegionInfoprivate org.apache.hadoop.hbase.client.RegionInfoprivate org.apache.hadoop.fs.Pathprivate org.apache.hadoop.fs.Pathorg.junit.rules.TestNameprivate static org.apache.hadoop.hbase.master.cleaner.DirScanPoolprivate org.apache.hadoop.fs.Pathprivate org.apache.hadoop.hbase.TableNameprivate org.apache.hadoop.hbase.TableNameprivate static final HBaseTestingUtilityprivate static final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()voidprivate voidcreateLink(boolean createBackReference) private static org.apache.hadoop.fs.PathgetFamilyDirPath(org.apache.hadoop.fs.Path rootDir, org.apache.hadoop.hbase.TableName table, String region, String family) static voidsetUp()static voidtearDown()voidvoidvoid
-
Field Details
-
CLASS_RULE
-
conf
-
rootDir
-
fs
-
tableName
-
tableLinkName
-
hfileName
-
familyName
-
hri
-
hriLink
-
archiveDir
-
archiveStoreDir
-
familyPath
-
hfilePath
-
familyLinkPath
-
hfileLinkName
-
linkBackRefDir
-
linkBackRef
-
backRefs
-
cleaner
-
TEST_UTIL
-
POOL
-
TTL
- See Also:
-
name
-
-
Constructor Details
-
TestHFileLinkCleaner
public TestHFileLinkCleaner()
-
-
Method Details
-
setUp
-
tearDown
-
configureDirectoriesAndLinks
- Throws:
IOException
-
createLink
- Throws:
IOException
-
cleanup
- Throws:
IOExceptionInterruptedException
-
testHFileLinkCleaning
- Throws:
Exception
-
testHFileLinkByRemovingReference
- Throws:
Exception
-
testHFileLinkEmptyBackReferenceDirectory
- Throws:
Exception
-
getFamilyDirPath
private static org.apache.hadoop.fs.Path getFamilyDirPath(org.apache.hadoop.fs.Path rootDir, org.apache.hadoop.hbase.TableName table, String region, String family)
-