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

NullPointerException when redo Command is passed negative value

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4.8, 3.5.1, 3.5.2
    • Fix Version/s: 3.4.10, 3.5.3, 3.6.0
    • Component/s: java client
    • Labels:
      None
    • Environment:

      Linux , windows

      Description

      When negative value of argument is passed to redo command .

      [zk: localhost:2181(CONNECTED) 0] redo -1
      Exception in thread "main" java.lang.NullPointerException
      at java.util.StringTokenizer.<init>(Unknown Source)
      at java.util.StringTokenizer.<init>(Unknown Source)
      at org.apache.zookeeper.ZooKeeperMain$MyCommandOptions.parseCommand(ZooKeeperMain.java:227)
      at org.apache.zookeeper.ZooKeeperMain.processZKCmd(ZooKeeperMain.java:645)
      at org.apache.zookeeper.ZooKeeperMain.processCmd(ZooKeeperMain.java:588)
      at org.apache.zookeeper.ZooKeeperMain.executeLine(ZooKeeperMain.java:360)
      at org.apache.zookeeper.ZooKeeperMain.run(ZooKeeperMain.java:323)
      at org.apache.zookeeper.ZooKeeperMain.main(ZooKeeperMain.java:282)

        Attachments

        1. ZOOKEEPER-2467.patch
          3 kB
          Rakesh R
        2. ZOOKEEPER-2467.patch
          3 kB
          Rakesh Kumar Singh
        3. ZOOKEEPER-2467.patch
          2 kB
          Rakesh Kumar Singh
        4. ZOOKEEPER-2467.patch
          1 kB
          Joshi Shankar
        5. ZOOKEEPER-2467.patch
          1 kB
          Joshi Shankar
        6. ZOOKEEPER-2467-1.patch
          3 kB
          Joshi Shankar
        7. ZOOKEEPER-2467-br3-4.patch
          3 kB
          Rakesh R
        8. ZOOKEEPER-2467-final.patch
          3 kB
          Joshi Shankar

          Issue Links

            Activity

              People

              • Assignee:
                rakeshsingh Rakesh Kumar Singh
                Reporter:
                joshi.shankar Joshi Shankar
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: