hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bryan Duxbury (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HBASE-452) "region offline" should throw IOException, not IllegalStateException
Date Fri, 04 Apr 2008 18:23:26 GMT

     [ https://issues.apache.org/jira/browse/HBASE-452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Bryan Duxbury updated HBASE-452:

    Attachment: 452.patch

This patch adds a new exception class, RegionOfflineException, and throws that instead of
an ISE when it encounters an offline region in HConnectionManager, meaning HTable#get, etc
no longer throw ISEs.

Passes tests locally.

> "region offline" should throw IOException, not IllegalStateException
> --------------------------------------------------------------------
>                 Key: HBASE-452
>                 URL: https://issues.apache.org/jira/browse/HBASE-452
>             Project: Hadoop HBase
>          Issue Type: Bug
>    Affects Versions: 0.2.0, 0.1.0
>            Reporter: Michael Bieniosek
>            Assignee: Bryan Duxbury
>            Priority: Minor
>             Fix For: 0.2.0
>         Attachments: 452.patch
> It would be nice if I could wrap my HTable.get calls in try {} catch (IOException e).
 But that doesn't work, since I also need to catch IllegalStateException.  I think that any
time there is something wrong with hbase, hbase calls should throw an IOException (or subclass
thereof).  Things like IllegalStateException should be reserved for programmer error.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message