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

NullPointerException when redo Command is passed negative value

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.4.8, 3.5.1, 3.5.2
    • 3.4.10, 3.5.3, 3.6.0
    • java client
    • None
    • 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-br3-4.patch
          3 kB
          Rakesh Radhakrishnan
        2. ZOOKEEPER-2467.patch
          3 kB
          Rakesh Radhakrishnan
        3. ZOOKEEPER-2467.patch
          3 kB
          Rakesh Kumar Singh
        4. ZOOKEEPER-2467.patch
          2 kB
          Rakesh Kumar Singh
        5. ZOOKEEPER-2467-final.patch
          3 kB
          Joshi Shankar
        6. ZOOKEEPER-2467-1.patch
          3 kB
          Joshi Shankar
        7. ZOOKEEPER-2467.patch
          1 kB
          Joshi Shankar
        8. ZOOKEEPER-2467.patch
          1 kB
          Joshi Shankar

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            rakeshsingh Rakesh Kumar Singh Assign to me
            joshi.shankar Joshi Shankar
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment