public class TestCleanerChore extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
TestCleanerChore.AllValidPaths |
static class |
TestCleanerChore.AlwaysDelete |
static class |
TestCleanerChore.NeverDelete |
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.slf4j.Logger |
LOG |
private static org.apache.hadoop.hbase.master.cleaner.DirScanPool |
POOL |
private static HBaseTestingUtility |
UTIL |
Constructor and Description |
---|
TestCleanerChore() |
Modifier and Type | Method and Description |
---|---|
static void |
cleanup() |
private void |
createFiles(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path parentDir,
int numOfFiles) |
void |
retriesIOExceptionInStatus() |
static void |
setup() |
void |
testCleanerDoesNotDeleteDirectoryWithLateAddedFiles()
While cleaning a directory, all the files in the directory may be deleted, but there may be
another file added, in which case the directory shouldn't be deleted.
|
void |
testDeleteFileWithCleanerDisabled() |
void |
testDeleteFileWithCleanerEnabled() |
void |
testDeletesEmptyDirectories() |
void |
testDoesNotCheckDirectories()
Test to make sure that we don't attempt to ask the delegate whether or not we should preserve a
directory.
|
void |
testMinimumNumberOfThreads() |
void |
testNoExceptionFromDirectoryWithRacyChildren()
The cleaner runs in a loop, where it first checks to see all the files under a directory can be
deleted.
|
void |
testOnConfigurationChange() |
void |
testOnConfigurationChangeLogCleaner() |
void |
testSavesFilesOnRequest() |
void |
testStoppedCleanerDoesNotDeleteFiles() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility UTIL
private static org.apache.hadoop.hbase.master.cleaner.DirScanPool POOL
public TestCleanerChore()
public static void setup()
public void testSavesFilesOnRequest() throws Exception
Exception
public void retriesIOExceptionInStatus() throws Exception
Exception
public void testDeletesEmptyDirectories() throws Exception
Exception
public void testDoesNotCheckDirectories() throws Exception
Exception
- on failurepublic void testStoppedCleanerDoesNotDeleteFiles() throws Exception
Exception
public void testCleanerDoesNotDeleteDirectoryWithLateAddedFiles() throws IOException
IOException
- on failurepublic void testNoExceptionFromDirectoryWithRacyChildren() throws Exception
This was from HBASE-7465.
Exception
- on failurepublic void testDeleteFileWithCleanerEnabled() throws Exception
Exception
public void testDeleteFileWithCleanerDisabled() throws Exception
Exception
public void testOnConfigurationChange() throws Exception
Exception
public void testOnConfigurationChangeLogCleaner() throws Exception
Exception
public void testMinimumNumberOfThreads() throws Exception
Exception
private void createFiles(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path parentDir, int numOfFiles) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.