HBASE-25371: When openRegion fails during initial verification(before… (#2785)

Signed-off-by: stack <stack@apache.org>
This commit is contained in:
Mohammad Arshad 2020-12-21 21:41:22 +05:30 committed by Duo Zhang
parent 65999a9027
commit a561c71f00
1 changed files with 3 additions and 1 deletions

View File

@ -8082,7 +8082,9 @@ public class HRegion implements HeapSize, PropagatingConfigurationObserver, Regi
// 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);