cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Murukesh Mohanan (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-12748) Cassandra fails to start up if GREP_COLOR is set
Date Mon, 03 Apr 2017 03:20:42 GMT


Murukesh Mohanan commented on CASSANDRA-12748:

{{env}} has an {{-i}} option which allows us to run a command with a clean environment ([this
is specified by POSIX|],
so should be portable). Since we don't know what environment variables can affect commands
invoked in our scripts, should we consider re-executing the script with {{env -i var1="$var1"
var2="$var2" ...}} where {{var1}}, {{var2}}, etc. are explicitly listed out as only those
variables of interest to us?

As an example, [Ubuntu's {{service}} command|]
calls init scripts with a clean environment, retaining only the {{LANG}}, {{PATH}} and {{TERM}}
variables. Of course, we would need to retain more.

> Cassandra fails to start up if GREP_COLOR is set
> ------------------------------------------------
>                 Key: CASSANDRA-12748
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Benjamin Roth
>            Priority: Minor
> If env var GREP_COLOR is set, CS fails to start as startup command then contains ANSI
> See when JVM_OPTS_FILE is parsed.

This message was sent by Atlassian JIRA

View raw message