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
Attachments
Issue Links
- is part of
-
ZOOKEEPER-1898 ZooKeeper Java cli shell always returns "0" as exit code
- Closed