@InterfaceAudience.LimitedPrivate(value="Configuration") public class ManualMobMaintHFileCleaner extends BaseHFileCleanerDelegate
BaseHFileCleanerDelegate
that prevents cleaning HFiles from a mob region
keeps a map of table name strings to mob region name strings over the life of
a JVM instance. if there's churn of unique table names we'll eat memory until
Master restart.Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOG |
private static ConcurrentMap<TableName,String> |
MOB_REGIONS |
Constructor and Description |
---|
ManualMobMaintHFileCleaner() |
Modifier and Type | Method and Description |
---|---|
boolean |
isFileDeletable(org.apache.hadoop.fs.FileStatus fStat)
Should the master delete the file or keep it?
|
isStopped, stop
getDeletableFiles, init
getConf, setConf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
preClean
private static final org.slf4j.Logger LOG
private static final ConcurrentMap<TableName,String> MOB_REGIONS
public ManualMobMaintHFileCleaner()
public boolean isFileDeletable(org.apache.hadoop.fs.FileStatus fStat)
BaseFileCleanerDelegate
isFileDeletable
in class BaseFileCleanerDelegate
fStat
- file status of the file to checkCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.