HBASE-22688 [HBCK2] Add filesystem fixup to hbck2 #10
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds a general filesystem check command to the HBCK2 list.
Runs just the offline filesystem checks from the old hbck1
HBaseFsck tool. Checks hfile validity, if references and
hfile links are wholesome, and whether the hbase.version
file is present. Pass '--fix' to do fixup.
Depends on hbck1 HBaseFsck being present in hbck2
(HBASE-22680 adds it so this could go in after it)
Does NOT do regiondir or tabledir fixup or fixing of
orphans in hdfs or plugging holes in hdfs.
A hbase-hbck2/src/main/java/org/apache/hbase/FileSystemFsck.java
Adds a file to handle filesystem fsck checking and fixing.
M hbase-hbck2/src/main/java/org/apache/hbase/hbck1/HFileCorruptionChecker.java
Formatting fixes and filling out the MOB report so like the hfile
report.
Signed-off-by: Sean Busbey busbey@apache.org