Skip to content

Commit 1cd8638

Browse files
arshadmohammadApache9
authored andcommitted
HBASE-25371: When openRegion fails during initial verification(before… (#2785)
Signed-off-by: stack <stack@apache.org>
1 parent 0849fae commit 1cd8638

File tree

1 file changed

+3
-1
lines changed
  • hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver

1 file changed

+3
-1
lines changed

hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7344,7 +7344,9 @@ private HRegion openHRegion(final CancelableProgressable reporter) throws IOExce
73447344
// MetricsRegionWrapperImpl is already init and not close,
73457345
// add region close when open failed
73467346
try {
7347-
this.close();
7347+
// It is not required to write sequence id file when region open is failed.
7348+
// Passing true to skip the sequence id file write.
7349+
this.close(true);
73487350
} catch (Throwable e) {
73497351
LOG.warn("Open region: {} failed. Try close region but got exception ", this.getRegionInfo(),
73507352
e);

0 commit comments

Comments
 (0)