Package org.apache.hadoop.hbase.util
Class HbckTableInfo
java.lang.Object
org.apache.hadoop.hbase.util.HbckTableInfo
Maintain information about a particular table.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) classThis handler fixes integrity errors from hdfs information.(package private) class -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final List<HbckRegionInfo>(package private) TreeSet<ServerName>(package private) HBaseFsck(package private) final Set<TableDescriptor>private static final org.slf4j.Logger(package private) final org.apache.hbase.thirdparty.com.google.common.collect.Multimap<byte[],HbckRegionInfo> private org.apache.hbase.thirdparty.com.google.common.collect.ImmutableList<RegionInfo>(package private) final RegionSplitCalculator<HbckRegionInfo>(package private) final Map<org.apache.hadoop.fs.Path,HbckRegionInfo> (package private) TableNameprivate static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddServer(ServerName server) booleanCheck the region chain (from META) of this table.private voiddump(SortedSet<byte[]> splits, org.apache.hbase.thirdparty.com.google.common.collect.Multimap<byte[], HbckRegionInfo> regions) This dumps data in a visually reasonable way for visual debuggingprivate voiddumpOverlapProblems(org.apache.hbase.thirdparty.com.google.common.collect.Multimap<byte[], HbckRegionInfo> regions) private voiddumpSidelinedRegions(Map<org.apache.hadoop.fs.Path, HbckRegionInfo> regions) getName()intorg.apache.hbase.thirdparty.com.google.common.collect.ImmutableList<RegionInfo>getRegionsFromMeta(TreeMap<String, HbckRegionInfo> regionInfoMap) (package private) TableDescriptorReturns descriptor common to all regions.private booleanhandleOverlapsParallel(TableIntegrityErrorHandler handler, byte[] prevKey)
-
Field Details
-
LOG
-
TO_BE_LOADED
- See Also:
-
tableName
-
deployedOn
-
backwards
-
sidelinedRegions
-
sc
-
htds
-
overlapGroups
final org.apache.hbase.thirdparty.com.google.common.collect.Multimap<byte[],HbckRegionInfo> overlapGroups -
regionsFromMeta
private org.apache.hbase.thirdparty.com.google.common.collect.ImmutableList<RegionInfo> regionsFromMeta -
hbck
-
-
Constructor Details
-
HbckTableInfo
HbckTableInfo(TableName name, HBaseFsck hbck)
-
-
Method Details
-
getTableDescriptor
Returns descriptor common to all regions. null if are none or multiple! -
addRegionInfo
-
addServer
-
getName
-
getNumRegions
-
getRegionsFromMeta
public org.apache.hbase.thirdparty.com.google.common.collect.ImmutableList<RegionInfo> getRegionsFromMeta(TreeMap<String, HbckRegionInfo> regionInfoMap) -
checkRegionChain
Check the region chain (from META) of this table. We are looking for holes, overlaps, and cycles.- Returns:
- false if there are errors
- Throws:
IOException
-
handleOverlapsParallel
private boolean handleOverlapsParallel(TableIntegrityErrorHandler handler, byte[] prevKey) throws IOException - Throws:
IOException
-
dump
private void dump(SortedSet<byte[]> splits, org.apache.hbase.thirdparty.com.google.common.collect.Multimap<byte[], HbckRegionInfo> regions) This dumps data in a visually reasonable way for visual debugging -
dumpOverlapProblems
private void dumpOverlapProblems(org.apache.hbase.thirdparty.com.google.common.collect.Multimap<byte[], HbckRegionInfo> regions) -
dumpSidelinedRegions
-