[ 
https://issues.apache.org/jira/browse/IGNITE-13328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17177068#comment-17177068
 ] 

Peter Ivanov commented on IGNITE-13328:
---------------------------------------

What is the reason why IF clause prevented from correct exit code in case of 
error?
Also, I'd recommended to specify set options in one line, i.e. {code}
#!/usr/bin/env bash
set -o nounset; set -o errexit; set -o pipefail; set -o errtrace; set -o 
functrace

...
{code}

> Control.sh bash script swallow return code of CommandHandler and always 
> return 0
> --------------------------------------------------------------------------------
>
>                 Key: IGNITE-13328
>                 URL: https://issues.apache.org/jira/browse/IGNITE-13328
>             Project: Ignite
>          Issue Type: Bug
>    Affects Versions: 2.8, 2.8.1
>            Reporter: Ivan Daschinskiy
>            Assignee: Ivan Daschinskiy
>            Priority: Blocker
>             Fix For: 2.9
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> After merging 
> [IGNITE-12367|https://issues.apache.org/jira/browse/IGNITE-12367],
> control.sh always return 0, despite the fact that CommandHandler returns 
> correct code.
> For example:
> Ignite 2.8.1
> {code}
> Failed to execute baseline command='collect'
> Latest topology update failed.
> Connection to cluster failed. Latest topology update failed.
> Command [BASELINE] finished with code: 2
> Control utility has completed execution at: 2020-08-05T15:01:34.123
> Execution time: 26627 ms
> >>> echo $?
> 0
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to