ZooKeeper
  1. ZooKeeper
  2. ZOOKEEPER-1059

stat command isses on non-existing node causes NPE

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.4.0
    • Component/s: java client
    • Labels:
      None
    • Hadoop Flags:
      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)
      
      
      1. ZOOKEEPER-1059.patch
        2 kB
        Bhallamudi Venkata Siva Kamesh

        Activity

          People

          • Assignee:
            Bhallamudi Venkata Siva Kamesh
            Reporter:
            Bhallamudi Venkata Siva Kamesh
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development