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
Modifier and TypeClassDescription(package private) class
This handler fixes integrity errors from hdfs information.(package private) class
-
Field Summary
Modifier 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) TableName
private static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addServer
(ServerName server) boolean
Check the region chain (from META) of this table.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 debuggingprivate void
dumpOverlapProblems
(org.apache.hbase.thirdparty.com.google.common.collect.Multimap<byte[], HbckRegionInfo> regions) private void
dumpSidelinedRegions
(Map<org.apache.hadoop.fs.Path, HbckRegionInfo> regions) getName()
int
org.apache.hbase.thirdparty.com.google.common.collect.ImmutableList<RegionInfo>
getRegionsFromMeta
(TreeMap<String, HbckRegionInfo> regionInfoMap) (package private) TableDescriptor
Returns descriptor common to all regions.private boolean
handleOverlapsParallel
(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
-