You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Nicolas Guyomar (Jira)" <ji...@apache.org> on 2022/10/11 14:23:00 UTC
[jira] [Created] (KAFKA-14289) Use non zero status code in Kafka CLI when the command failed
Nicolas Guyomar created KAFKA-14289:
---------------------------------------
Summary: Use non zero status code in Kafka CLI when the command failed
Key: KAFKA-14289
URL: https://issues.apache.org/jira/browse/KAFKA-14289
Project: Kafka
Issue Type: Improvement
Components: tools
Reporter: Nicolas Guyomar
Hi team,
Using the kafka-consumer-groups CLI as an example, running the --reset-offsets option on an active consumer group results in an ERROR in the stdout
_Error: Assignments can only be reset if the group 'console-consumer-12543' is inactive, but the current state is Stable._
but the status code is 0, while it would be nice, for any automation work, to use status code 1
Was that a design decision to consider the command execution to be a success (it technically is because the command ran without bug) and return 0, and not interpret the Kafka response to map it to the CLI output status code ?
Thank you
--
This message was sent by Atlassian Jira
(v8.20.10#820010)