public class TestCatalogJanitor extends Object
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
org.junit.rules.TestName |
name |
| Constructor and Description |
|---|
TestCatalogJanitor() |
| Modifier and Type | Method and Description |
|---|---|
static void |
beforeClass() |
void |
setup() |
void |
teardown() |
void |
testArchiveOldRegion() |
void |
testCleanParent()
Test clearing a split parent.
|
void |
testDuplicateHFileResolution()
Test that if a store file with the same name is present as those already backed up cause the
already archived files to be timestamped backup
|
void |
testLastParentCleanedEvenIfDaughterGoneFirst()
Make sure last parent with empty end key gets cleaned up even if daughter is cleaned up before it.
|
void |
testParentCleanedEvenIfDaughterGoneFirst()
Make sure parent gets cleaned up even if daughter is cleaned up before it.
|
void |
testScanDoesNotCleanRegionsWithExistingParents()
CatalogJanitor.scan() should not clean parent regions if their own
parents are still referencing them.
|
void |
testSplitParentFirstComparator()
Test that we correctly archive all the storefiles when a region is deleted
|
public static final HBaseClassTestRule CLASS_RULE
public final org.junit.rules.TestName name
public TestCatalogJanitor()
public static void beforeClass() throws Exception
Exceptionpublic void setup() throws IOException, org.apache.zookeeper.KeeperException
IOExceptionorg.apache.zookeeper.KeeperExceptionpublic void teardown()
public void testCleanParent() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void testParentCleanedEvenIfDaughterGoneFirst() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void testLastParentCleanedEvenIfDaughterGoneFirst() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void testScanDoesNotCleanRegionsWithExistingParents() throws Exception
Exceptionpublic void testSplitParentFirstComparator()
Exceptionpublic void testArchiveOldRegion() throws Exception
Exceptionpublic void testDuplicateHFileResolution() throws Exception
ExceptionCopyright © 2007–2019 Cloudera. All rights reserved.