hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "songwanging (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-14399) unhandled exception
Date Thu, 10 Sep 2015 16:21:46 GMT
songwanging created HBASE-14399:
-----------------------------------

             Summary: unhandled exception
                 Key: HBASE-14399
                 URL: https://issues.apache.org/jira/browse/HBASE-14399
             Project: HBase
          Issue Type: Bug
    Affects Versions: 1.1.2, 1.0.1.1, 1.1.1, 1.0.1
            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)

Mime
View raw message