You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Rakesh R (JIRA)" <ji...@apache.org> on 2015/04/10 08:35:12 UTC
[jira] [Commented] (ZOOKEEPER-2074) Incorrect exit codes for
"./zkCli.sh cmd arg"
[ https://issues.apache.org/jira/browse/ZOOKEEPER-2074?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14489033#comment-14489033 ]
Rakesh R commented on ZOOKEEPER-2074:
-------------------------------------
Thanks [~surendrasingh] for taking care this. Could you tell me, any specific reason to not to return the status after executing the {{"redo"}} command. IMO, we can return after executing the command. Please verify this case also.
{code}
history.put(commandCount, history.get(i));
processCmd( cl);
{code}
> Incorrect exit codes for "./zkCli.sh cmd arg"
> ---------------------------------------------
>
> Key: ZOOKEEPER-2074
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2074
> Project: ZooKeeper
> Issue Type: Bug
> Affects Versions: 3.5.0
> Reporter: surendra singh lilhore
> Assignee: surendra singh lilhore
> Priority: Minor
> Fix For: 3.5.1, 3.6.0
>
> Attachments: ZOOKEEPER-2074_1.patch, ZOOKEEPER-2074_2.patch, ZOOKEEPER-2074_3.patch
>
>
> 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
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)