You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Andrew Purtell (JIRA)" <ji...@apache.org> on 2015/09/11 00:26:46 UTC

[jira] [Resolved] (HBASE-14399) unhandled exception

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

Andrew Purtell resolved HBASE-14399.
------------------------------------
    Resolution: Invalid

Please don't file issues like this for nits. We'd have too many pending issues, tiny patches, review cycles. If you'd like to point out an issue like this, find multiple occurrences, preferable all of them you can spot, then make an issue about fixing all of them. 

> unhandled exception
> -------------------
>
>                 Key: HBASE-14399
>                 URL: https://issues.apache.org/jira/browse/HBASE-14399
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 1.0.1, 1.1.1, 1.0.1.1, 1.1.2
>            Reporter: songwanging
>            Priority: Minor
>
> In method run() of class HRegionServer( hbase-server\src\main\java\org\apache\hadoop\hbase\regionserver\HRegionServer.java).
> The first dummy catch block catch (KeeperException.NoNodeException nn)
> performs no actions to handle its expected exception, which makes itself useless. 
> To fix this bug, developers should add more code into the catch block to handle this exception.
> public void run() {
> ...
> try {
>  deleteMyEphemeralNode();
> }catch (KeeperException.NoNodeException nn){
> }catch (KeeperException e) {
>  LOG.warn("Failed deleting my ephemeral node",e);
> }
> ...
> }



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)