public class TestHFileLinkCleaner extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
TestHFileLinkCleaner.DummyServer |
Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.fs.Path |
archiveDir |
private org.apache.hadoop.fs.Path |
archiveStoreDir |
private org.apache.hadoop.fs.FileStatus[] |
backRefs |
static HBaseClassTestRule |
CLASS_RULE |
private org.apache.hadoop.hbase.master.cleaner.HFileCleaner |
cleaner |
private org.apache.hadoop.conf.Configuration |
conf |
private org.apache.hadoop.fs.Path |
familyLinkPath |
private String |
familyName |
private org.apache.hadoop.fs.Path |
familyPath |
private org.apache.hadoop.fs.FileSystem |
fs |
private String |
hfileLinkName |
private String |
hfileName |
private org.apache.hadoop.fs.Path |
hfilePath |
private org.apache.hadoop.hbase.client.RegionInfo |
hri |
private org.apache.hadoop.hbase.client.RegionInfo |
hriLink |
private org.apache.hadoop.fs.Path |
linkBackRef |
private org.apache.hadoop.fs.Path |
linkBackRefDir |
org.junit.rules.TestName |
name |
private static org.apache.hadoop.hbase.master.cleaner.DirScanPool |
POOL |
private org.apache.hadoop.fs.Path |
rootDir |
private org.apache.hadoop.hbase.TableName |
tableLinkName |
private org.apache.hadoop.hbase.TableName |
tableName |
private static HBaseTestingUtil |
TEST_UTIL |
private static long |
TTL |
Constructor and Description |
---|
TestHFileLinkCleaner() |
Modifier and Type | Method and Description |
---|---|
void |
cleanup() |
void |
configureDirectoriesAndLinks() |
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 |
testHFileLinkByRemovingReference() |
void |
testHFileLinkCleaning() |
void |
testHFileLinkEmptyBackReferenceDirectory() |
public static final HBaseClassTestRule CLASS_RULE
private org.apache.hadoop.conf.Configuration conf
private org.apache.hadoop.fs.Path rootDir
private org.apache.hadoop.fs.FileSystem fs
private org.apache.hadoop.hbase.TableName tableName
private org.apache.hadoop.hbase.TableName tableLinkName
private String familyName
private org.apache.hadoop.hbase.client.RegionInfo hri
private org.apache.hadoop.hbase.client.RegionInfo hriLink
private org.apache.hadoop.fs.Path archiveDir
private org.apache.hadoop.fs.Path archiveStoreDir
private org.apache.hadoop.fs.Path familyPath
private org.apache.hadoop.fs.Path hfilePath
private org.apache.hadoop.fs.Path familyLinkPath
private String hfileLinkName
private org.apache.hadoop.fs.Path linkBackRefDir
private org.apache.hadoop.fs.Path linkBackRef
private org.apache.hadoop.fs.FileStatus[] backRefs
private org.apache.hadoop.hbase.master.cleaner.HFileCleaner cleaner
private static final HBaseTestingUtil TEST_UTIL
private static org.apache.hadoop.hbase.master.cleaner.DirScanPool POOL
private static final long TTL
public org.junit.rules.TestName name
public TestHFileLinkCleaner()
public static void setUp()
public static void tearDown()
public void configureDirectoriesAndLinks() throws IOException
IOException
private void createLink(boolean createBackReference) throws IOException
IOException
public void cleanup() throws IOException, InterruptedException
IOException
InterruptedException
public void testHFileLinkCleaning() throws Exception
Exception
public void testHFileLinkByRemovingReference() throws Exception
Exception
public void testHFileLinkEmptyBackReferenceDirectory() throws Exception
Exception
private static org.apache.hadoop.fs.Path getFamilyDirPath(org.apache.hadoop.fs.Path rootDir, org.apache.hadoop.hbase.TableName table, String region, String family)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.