Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
Reviewed
Description
stat command issues on non existing zookeeper node,causes NPE to the client.
[zk: localhost:2181(CONNECTED) 2] stat /invalidPath Exception in thread "main" java.lang.NullPointerException at org.apache.zookeeper.ZooKeeperMain.printStat(ZooKeeperMain.java:131) at org.apache.zookeeper.ZooKeeperMain.processZKCmd(ZooKeeperMain.java:723) at org.apache.zookeeper.ZooKeeperMain.processCmd(ZooKeeperMain.java:582) at org.apache.zookeeper.ZooKeeperMain.executeLine(ZooKeeperMain.java:354) at org.apache.zookeeper.ZooKeeperMain.run(ZooKeeperMain.java:312) at org.apache.zookeeper.ZooKeeperMain.main(ZooKeeperMain.java:271)