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
-
Field Summary
Modifier and TypeFieldDescriptionprivate org.apache.hadoop.fs.Path
private org.apache.hadoop.fs.Path
private org.apache.hadoop.fs.FileStatus[]
static final HBaseClassTestRule
private org.apache.hadoop.hbase.master.cleaner.HFileCleaner
private org.apache.hadoop.conf.Configuration
private org.apache.hadoop.fs.Path
private String
private org.apache.hadoop.fs.Path
private org.apache.hadoop.fs.FileSystem
private String
private String
private org.apache.hadoop.fs.Path
private org.apache.hadoop.hbase.client.RegionInfo
private org.apache.hadoop.hbase.client.RegionInfo
private org.apache.hadoop.fs.Path
private org.apache.hadoop.fs.Path
org.junit.rules.TestName
private static org.apache.hadoop.hbase.master.cleaner.DirScanPool
private org.apache.hadoop.fs.Path
private org.apache.hadoop.hbase.TableName
private org.apache.hadoop.hbase.TableName
private static final HBaseTestingUtility
private static final long
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanup()
void
private void
createLink
(boolean createBackReference) private static org.apache.hadoop.fs.Path
getFamilyDirPath
(org.apache.hadoop.fs.Path rootDir, org.apache.hadoop.hbase.TableName table, String region, String family) static void
setUp()
static void
tearDown()
void
void
void
-
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:
IOException
InterruptedException
-
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)
-