HBASE-25276 Need to throw the original exception in HRegion#openHRegion (#2648)
Signed-off-by: Guanghao Zhang <zghao@apache.org>
This commit is contained in:
parent
ec3f843b23
commit
c48f6ebd09
|
@ -8089,7 +8089,12 @@ public class HRegion implements HeapSize, PropagatingConfigurationObserver, Regi
|
||||||
// By coprocessor path wrong region will open failed,
|
// By coprocessor path wrong region will open failed,
|
||||||
// MetricsRegionWrapperImpl is already init and not close,
|
// MetricsRegionWrapperImpl is already init and not close,
|
||||||
// add region close when open failed
|
// add region close when open failed
|
||||||
|
try {
|
||||||
this.close();
|
this.close();
|
||||||
|
} catch (Throwable e) {
|
||||||
|
LOG.warn("Open region: {} failed. Try close region but got exception ", this.getRegionInfo(),
|
||||||
|
e);
|
||||||
|
}
|
||||||
throw t;
|
throw t;
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
|
|
Loading…
Reference in New Issue