[ https://issues.apache.org/jira/browse/HBASE-5423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13210760#comment-13210760 ]
chunhui shen commented on HBASE-5423: ------------------------------------- If we failed closing one region, we will remove it from RIT , so it maybe calling close multiple times on same region. {code} CloseRegionHandler#process(){ try{ ... region.close(abort) ... }finally{ this.rsServices.getRegionsInTransitionInRS(). remove(this.regionInfo.getEncodedNameAsBytes()); } } {code} Therefore, if we can't close some regions because of some exception, we should break even though online regions is not yet empty, otherwise, it may block forever on waitOnAllRegionsToClose > Regionserver may block forever on waitOnAllRegionsToClose when aborting > ----------------------------------------------------------------------- > > Key: HBASE-5423 > URL: https://issues.apache.org/jira/browse/HBASE-5423 > Project: HBase > Issue Type: Bug > Components: regionserver > Reporter: chunhui shen > Assignee: chunhui shen > Attachments: hbase-5423.patch > > > If closeRegion throws any exception (It would be caused by FS ) when RS is > aborting, > RS will block forever on waitOnAllRegionsToClose(). -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira