@InterfaceAudience.Private public class CatalogJanitor extends ScheduledChore
hbase:meta catalog
table on a period. Makes a lastReport on state of hbase:meta. Looks for unused
regions to garbage collect. Scan of hbase:meta runs if we are NOT in maintenance
mode, if we are NOT shutting down, AND if the assignmentmanager is loaded.
Playing it safe, we will garbage collect no-longer needed region references
only if there are no regions-in-transition (RIT).| 限定符和类型 | 类和说明 |
|---|---|
static class |
CatalogJanitor.Report
Report made by ReportMakingVisitor
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
chore() |
boolean |
cleanMergeQualifier(RegionInfo region)
Checks if the specified region has merge qualifiers, if so, try to clean them.
|
CatalogJanitor.Report |
getLastReport() |
protected boolean |
initialChore() |
static void |
main(String[] args)
For testing against a cluster.
|
cancel, cancel, choreForTesting, cleanup, getInitialDelay, getName, getPeriod, getStopper, getTimeUnit, isInitialChoreComplete, isScheduled, run, toString, triggerNowprotected boolean initialChore()
initialChore 在类中 ScheduledChoreprotected void chore()
chore 在类中 ScheduledChorepublic CatalogJanitor.Report getLastReport()
public boolean cleanMergeQualifier(RegionInfo region) throws IOException
IOExceptionpublic static void main(String[] args) throws IOException
IOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.