Skip to content

Commit

Permalink
HBASE-25371: When openRegion fails during initial verification(before… (
Browse files Browse the repository at this point in the history
#2785)


Signed-off-by: stack <stack@apache.org>
  • Loading branch information
arshadmohammad authored Dec 21, 2020
1 parent 56f1dbd commit dcb38f4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8135,7 +8135,9 @@ protected HRegion openHRegion(final CancelableProgressable reporter)
// MetricsRegionWrapperImpl is already init and not close,
// add region close when open failed
try {
this.close();
// It is not required to write sequence id file when region open is failed.
// Passing true to skip the sequence id file write.
this.close(true);
} catch (Throwable e) {
LOG.warn("Open region: {} failed. Try close region but got exception ", this.getRegionInfo(),
e);
Expand Down

0 comments on commit dcb38f4

Please sign in to comment.