Copy the comment from PR review.
If the file is a corrupt HFile, an exception will be thrown here, which will cause the region to fail to open.
Maybe we can add a new parameter to control whether to skip the exception, similar to recover edits which has a parameter "hbase.hregion.edits.replay.skip.errors";
Regions that can't be opened because of detached References or corrupt hfiles are a fact-of-life. We need work on this issue. This will be a new variant on the problem – i.e. bad recovered hfiles.
On adding a config to ignore bad files and just open, thats a bit dangerous as per @infraio .... as it could mean silent data loss.
|Add ut for loading the corrupt recovered hfiles||Resolved|