public class TestCleanerChore extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TestCleanerChore.AlwaysDelete |
static class |
TestCleanerChore.NeverDelete |
| Constructor and Description |
|---|
TestCleanerChore() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup() |
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 |
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 |
testNoExceptionFromDirectoryWithRacyChildren()
The cleaner runs in a loop, where it first checks to see all the files under a directory can be
deleted.
|
void |
testSavesFilesOnRequest() |
void |
testStoppedCleanerDoesNotDeleteFiles() |
public void testDeletesEmptyDirectories()
throws Exception
Exceptionpublic void testDoesNotCheckDirectories()
throws Exception
Exception - on failurepublic void testStoppedCleanerDoesNotDeleteFiles()
throws Exception
Exceptionpublic void testCleanerDoesNotDeleteDirectoryWithLateAddedFiles()
throws IOException
IOException - on failurepublic void testNoExceptionFromDirectoryWithRacyChildren()
throws Exception
This was from HBASE-7465.
Exception - on failure