You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Michael Bieniosek (JIRA)" <ji...@apache.org> on 2008/02/15 22:26:07 UTC
[jira] Created: (HBASE-452) "region offline" should throw
IOException, not IllegalStateException
"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
Reporter: Michael Bieniosek
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.
[jira] Updated: (HBASE-452) "region offline" should throw
IOException, not IllegalStateException
Posted by "Bryan Duxbury (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bryan Duxbury updated HBASE-452:
--------------------------------
Status: Patch Available (was: Open)
Review please.
> "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.1.0, 0.2.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.
[jira] Updated: (HBASE-452) "region offline" should throw
IOException, not IllegalStateException
Posted by "Bryan Duxbury (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bryan Duxbury updated HBASE-452:
--------------------------------
Resolution: Fixed
Status: Resolved (was: Patch Available)
Moved exception, committed to trunk.
> "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.
[jira] Assigned: (HBASE-452) "region offline" should throw
IOException, not IllegalStateException
Posted by "Bryan Duxbury (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bryan Duxbury reassigned HBASE-452:
-----------------------------------
Assignee: Bryan Duxbury
> "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
>
>
> 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.
[jira] Commented: (HBASE-452) "region offline" should throw
IOException, not IllegalStateException
Posted by "stack (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12585721#action_12585721 ]
stack commented on HBASE-452:
-----------------------------
+1 if the new Exception is moved under the client subpackage. This is a nice improvement.
> "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.
[jira] Updated: (HBASE-452) "region offline" should throw
IOException, not IllegalStateException
Posted by "Bryan Duxbury (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bryan Duxbury updated HBASE-452:
--------------------------------
Fix Version/s: 0.2.0
Affects Version/s: 0.1.0
0.2.0
> "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
> Priority: Minor
> Fix For: 0.2.0
>
>
> 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.
[jira] Updated: (HBASE-452) "region offline" should throw
IOException, not IllegalStateException
Posted by "Michael Bieniosek (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Bieniosek updated HBASE-452:
------------------------------------
Priority: Minor (was: Major)
> "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
> Reporter: Michael Bieniosek
> Priority: Minor
>
> 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.
[jira] Updated: (HBASE-452) "region offline" should throw
IOException, not IllegalStateException
Posted by "Bryan Duxbury (JIRA)" <ji...@apache.org>.
[ 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.