Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-1059

stat command isses on non-existing node causes NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.4.0
    • java client
    • 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)
      
      

      Attachments

        1. ZOOKEEPER-1059.patch
          2 kB
          Bhallamudi Venkata Siva Kamesh

        Activity

          People

            kam_iitkgp Bhallamudi Venkata Siva Kamesh
            kam_iitkgp Bhallamudi Venkata Siva Kamesh
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: