You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2011/04/15 23:10:05 UTC
[jira] [Updated] (HBASE-3788) Two error handlings in
AssignmentManager.setOfflineInZooKeeper()
[ https://issues.apache.org/jira/browse/HBASE-3788?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ted Yu updated HBASE-3788:
--------------------------
Attachment: 3788.patch
Patch using Bernd's comment
> Two error handlings in AssignmentManager.setOfflineInZooKeeper()
> ----------------------------------------------------------------
>
> Key: HBASE-3788
> URL: https://issues.apache.org/jira/browse/HBASE-3788
> Project: HBase
> Issue Type: Bug
> Components: master
> Affects Versions: 0.90.2
> Reporter: Ted Yu
> Assignee: Ted Yu
> Attachments: 3788.patch
>
>
> Lars George discovered this:
> {code}
> boolean setOfflineInZooKeeper(final RegionState state) {
> if (!state.isClosed() && !state.isOffline()) {
> new RuntimeException("Unexpected state trying to OFFLINE; " + state);
> this.master.abort("Unexpected state trying to OFFLINE; " + state,
> new IllegalStateException());
> return false;
> }
> {code}
> Bernd Fondermann commented on the proper fix.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira