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:39:06 UTC
[hbase] branch branch-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
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2 by this push:
new 1cd8638 HBASE-25371: When openRegion fails during initial verification(before… (#2785)
1cd8638 is described below
commit 1cd8638508eb21ac26ca978d65332afad6bef08b
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 0b7d76e..fbaaeb0 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
@@ -7344,7 +7344,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);