You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "chunhui shen (Updated) (JIRA)" <ji...@apache.org> on 2011/11/28 07:38:43 UTC
[jira] [Updated] (HBASE-4881) Unhealthy region is on service caused
by rollback of region splitting
[ https://issues.apache.org/jira/browse/HBASE-4881?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
chunhui shen updated HBASE-4881:
--------------------------------
Attachment: hbase-4881.patch
To ensure be safe, update the IOException to RunTimeException which is thrown by this.parent.initialize()
> Unhealthy region is on service caused by rollback of region splitting
> ---------------------------------------------------------------------
>
> Key: HBASE-4881
> URL: https://issues.apache.org/jira/browse/HBASE-4881
> Project: HBase
> Issue Type: Bug
> Reporter: chunhui shen
> Attachments: hbase-4881.patch
>
>
> If region splitting is failed in the state of JournalEntry.CLOSED_PARENT_REGION
> It will be rollback as the following steps:
> {code}
> 1.case CLOSED_PARENT_REGION:
> this.parent.initialize();
> break;
> 2.case CREATE_SPLIT_DIR:
> this.parent.writestate.writesEnabled = true;
> cleanupSplitDir(fs, this.splitdir);
> break;
> 3.case SET_SPLITTING_IN_ZK:
> if (server != null && server.getZooKeeper() != null) {
> cleanZK(server, this.parent.getRegionInfo());
> }
> break;
> {code}
> If this.parent.initialize() throws IOException in step 1,
> If check filesystem is ok. it will do nothing.
> However, the parent region is on service now.
--
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