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

        Bhallamudi Venkata Siva Kamesh created issue -
        Bhallamudi Venkata Siva Kamesh made changes -
        Field Original Value New Value
        Description *stat* command issues on non existing zookeeper node,causes NPE to the client.
        {noformat}
        [zk: localhost:2181(CONNECTED) 2] stat /amith
        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)

        {noformat}
        *stat* command issues on non existing zookeeper node,causes NPE to the client.
        {noformat}
        [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)

        {noformat}
        Mahadev konar made changes -
        Fix Version/s 3.4.0 [ 12314469 ]
        Affects Version/s 3.4.0 [ 12314469 ]
        Bhallamudi Venkata Siva Kamesh made changes -
        Attachment ZOOKEEPER-1059.patch [ 12479085 ]
        Bhallamudi Venkata Siva Kamesh made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Mahadev konar made changes -
        Assignee Bhallamudi Venkata Siva Kamesh [ kam_iitkgp ]
        Mahadev konar made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hadoop Flags [Reviewed]
        Resolution Fixed [ 1 ]
        Mahadev konar made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          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