[ https://issues.apache.org/jira/browse/HBASE-22361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16836498#comment-16836498 ]
Bahram Chehrazy commented on HBASE-22361: ----------------------------------------- [~sershe], I've updated the patch based on your comment. [~Apache9], this is another case were we saw regions stuck in OPENING and/or CLOSING state during shutdown of a region server. Could you please take a look. > RegionServer could get stuck during shutdown process > ---------------------------------------------------- > > Key: HBASE-22361 > URL: https://issues.apache.org/jira/browse/HBASE-22361 > Project: HBase > Issue Type: Bug > Components: regionserver > Affects Versions: 3.0.0, 2.2.0 > Reporter: Bahram Chehrazy > Assignee: Bahram Chehrazy > Priority: Major > Attachments: > Assign-and-close-event-handlers-should-remove-region-2.patch > > > When the server is being aborted or stopped, the server waits for all online > regions to flush and close. And if a region is at the end of opening process, > the openEventHandler throws an exception. However, it fails to remove that > region from the on-line regions and fails to notify the master. This would > prevent the server shutdown loop to exit. > Similarly, if regions that are being closed fail for any reason, the > closeEventHandler throws, but again, it fails to remove that region from the > on-line list. > > -- This message was sent by Atlassian JIRA (v7.6.3#76005)