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

Incorrect exit codes for "./zkCli.sh cmd arg"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.5.0
    • 3.5.3, 3.6.0
    • None
    • None
    • Reviewed

    Description

      Linux@hghoulaslx406:/> $ZOOKEEPER_HOME/bin/zkCli.sh create /test "test"
      Created /test1
      Linux@hghoulaslx406:/> echo $?
      0
      Linux@hghoulaslx406:/> $ZOOKEEPER_HOME/bin/zkCli.sh create /test "test"
      Node already exists: /test1
      Linux@hghoulaslx406:/> echo $?
      0
      Linux@hghoulaslx406:/> $ZOOKEEPER_HOME/bin/zkCli.sh delete /test
      Linux@hghoulaslx406:/> echo $?
      0
      Linux@hghoulaslx406:/> $ZOOKEEPER_HOME/bin/zkCli.sh delete /test
      Node does not exist: /test1
      Linux@hghoulaslx406:/> echo $?
      0

      Here for failed command it should return exit code 1

      Attachments

        1. ZOOKEEPER-2074_1.patch
          0.7 kB
          Surendra Singh Lilhore
        2. ZOOKEEPER-2074_2.patch
          1 kB
          Surendra Singh Lilhore
        3. ZOOKEEPER-2074_3.patch
          12 kB
          Surendra Singh Lilhore
        4. ZOOKEEPER-2074_4.patch
          2 kB
          Abraham Fine
        5. ZOOKEEPER-2074_5.patch
          2 kB
          Abraham Fine

        Issue Links

          Activity

            People

              abrahamfine Abraham Fine
              surendralilhore Surendra Singh Lilhore
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: