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:14 UTC
[hbase] branch branch-2.3 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.3
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2.3 by this push:
new 20f6a3a HBASE-25371: When openRegion fails during initial verification(before… (#2785)
20f6a3a is described below
commit 20f6a3a0d9dfa88a7e14e470f223ab7927d48911
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 df04b3a..16a9300 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
@@ -7511,7 +7511,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);