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:37:47 UTC

[hbase] branch branch-2.2 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.2
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-2.2 by this push:
     new 7c3bcd7  HBASE-25371: When openRegion fails during initial verification(before… (#2785)
7c3bcd7 is described below

commit 7c3bcd7640e163392e5d1a6ae00d98712fc530fa
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 1232d49..f196126 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
@@ -7379,7 +7379,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);