[ 
https://issues.apache.org/jira/browse/SOLR-17586?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jan Høydahl updated SOLR-17586:
-------------------------------
    Description: 
In SOLR-14115 we deprecated zkcli.sh. A deprecation echo was added to the 
script in 9.x and it was removed in 10.0.

Turns out the deprecation message is always printed (stdout) thus breaking 
scripts that rely on capturing the output from the script when used with 
{{{}-cmd get{}}}.

This can be fixed by echoing to stderr instead with

{code:bash}
>&2 echo "foo"
{code}


  was:
In SOLR-14115 we deprecated zkcli.sh. A deprecation echo was added to the 
script in 9.x and it was removed in 10.0.

Turns out the deprecation message is always printed (stdout) thus breaking 
scripts that rely on capturing the output from the script when used with 
{{{}-cmd get{}}}.

This can be fixed by echoing to stderr instead with
>&2 echo "foo"
 

{{}}


> Deprecation of zkcli.sh broken solr operator
> --------------------------------------------
>
>                 Key: SOLR-17586
>                 URL: https://issues.apache.org/jira/browse/SOLR-17586
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: scripts and tools
>    Affects Versions: 9.7
>            Reporter: Jan Høydahl
>            Priority: Major
>
> In SOLR-14115 we deprecated zkcli.sh. A deprecation echo was added to the 
> script in 9.x and it was removed in 10.0.
> Turns out the deprecation message is always printed (stdout) thus breaking 
> scripts that rely on capturing the output from the script when used with 
> {{{}-cmd get{}}}.
> This can be fixed by echoing to stderr instead with
> {code:bash}
> >&2 echo "foo"
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to