You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by zh...@apache.org on 2021/03/03 00:38:39 UTC
[hbase] branch branch-2.4 updated: HBASE-25371: When openRegion fails during initial verification(before… (#2785)
This is an automated email from the ASF dual-hosted git repository.
zhangduo pushed a commit to branch branch-2.4
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2.4 by this push:
new a561c71 HBASE-25371: When openRegion fails during initial verification(before… (#2785)
a561c71 is described below
commit a561c71f000187a643693d34497697169e69ed62
Author: Mohammad Arshad <ar...@apache.org>
AuthorDate: Mon Dec 21 21:41:22 2020 +0530
HBASE-25371: When openRegion fails during initial verification(before… (#2785)
Signed-off-by: stack <st...@apache.org>
---
.../src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
index 7f9736f..44a5879 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
@@ -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);