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)