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

Andrew Kyle Purtell closed HBASE-14399.
---------------------------------------

> 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
(v8.20.10#820010)

Reply via email to