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 GitHub
parent 56f1dbd116
commit dcb38f47db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -8135,7 +8135,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);