@InterfaceAudience.Private class MetaFixer extends Object
MetaTableAccessor is about low-level
manipulations driven by the Master. This class MetaFixer is
employed by the Master and it 'knows' about holes and orphan
and encapsulates their fixing on behalf of the Master.| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOG |
private MasterServices |
masterServices |
| Constructor and Description |
|---|
MetaFixer(MasterServices masterServices) |
| Modifier and Type | Method and Description |
|---|---|
private RegionInfo |
buildRegionInfo(TableName tn,
byte[] start,
byte[] end) |
(package private) void |
fix() |
(package private) boolean |
fixHoles(CatalogJanitor.Report report)
If hole, it papers it over by adding a region in the filesystem and to hbase:meta.
|
(package private) boolean |
fixOverlaps(CatalogJanitor.Report report) |
private RegionInfo |
getHoleCover(Pair<RegionInfo,RegionInfo> hole) |
private static final org.slf4j.Logger LOG
private final MasterServices masterServices
MetaFixer(MasterServices masterServices)
void fix() throws IOException
IOExceptionboolean fixHoles(CatalogJanitor.Report report) throws IOException
IOExceptionprivate RegionInfo getHoleCover(Pair<RegionInfo,RegionInfo> hole)
holeprivate RegionInfo buildRegionInfo(TableName tn, byte[] start, byte[] end)
boolean fixOverlaps(CatalogJanitor.Report report) throws IOException
IOExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.