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

Yunseop Eom commented on KAFKA-19812:
-------------------------------------

PR opened: https://github.com/apache/kafka/pull/23045 for KAFKA-19812. Fixed 
the Docker configure script so missing environment variables are reported 
correctly under bash -u instead of causing an unbound-variable error. Added 
regression tests for missing and empty values and wired them into the Docker 
sanity test runner. Tests: common_scripts_test, bash -n, Python syntax 
compilation, and git diff --check passed. Status: PR open and awaiting review.

> Unbound Error Thrown if some variables are not set for SASL/SSL configuration
> -----------------------------------------------------------------------------
>
>                 Key: KAFKA-19812
>                 URL: https://issues.apache.org/jira/browse/KAFKA-19812
>             Project: Kafka
>          Issue Type: Improvement
>          Components: docker
>    Affects Versions: 4.1.0
>            Reporter: Manas Poddar
>            Priority: Minor
>
> I was trying to set up a {*}Kafka container with SASL_SSL configuration{*}, 
> but I {*}missed setting up some environment variables{*}, and {*}Kafka kept 
> exiting with an unbound variable error{*}. I checked the 
> *{{/etc/kafka/docker/configure}}* file — it has an *{{ensure}} function* to 
> check and instruct the user when a particular environment variable is not 
> set. I also {*}checked the Docker history and the parent running file{*}, but 
> they {*}gave no clue about running the {{.sh}} files with {{set -u}}{*}.
> This issue is {*}just an enhancement to properly log the error details{*}.



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

Reply via email to