infraio commented on a change in pull request #2648:
URL: https://github.com/apache/hbase/pull/2648#discussion_r521821093
##########
File path:
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
##########
@@ -8137,11 +8137,15 @@ protected HRegion openHRegion(final
CancelableProgressable reporter)
RegionReplicaUtil.isDefaultReplica(getRegionInfo())) {
writeRegionOpenMarker(wal, openSeqNum);
}
- } catch(Throwable t) {
+ } catch (Throwable t) {
// By coprocessor path wrong region will open failed,
// MetricsRegionWrapperImpl is already init and not close,
// add region close when open failed
- this.close();
+ try {
+ this.close();
+ } catch (IOException e) {
+ LOG.error("close region exception in openHRegion ", e);
Review comment:
LOG.error("Open failed. Try close region but got exception", e);
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]