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

Brandon Williams updated CASSANDRA-19416:
-----------------------------------------
    Fix Version/s: 4.0.13
                       (was: 4.0.12)

> fix "if" condition for mx4j tool in cassandra-env.sh
> ----------------------------------------------------
>
>                 Key: CASSANDRA-19416
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-19416
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Legacy/Tools
>            Reporter: Stefan Miklosovic
>            Assignee: Stefan Miklosovic
>            Priority: Normal
>             Fix For: 4.0.13, 4.1.5, 5.0-beta2, 5.1
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> There is this in cassandra-env.sh
> {code}
> if [[ "$MX4J_ADDRESS" == \-Dmx4jaddress* ]]; then
> {code}
> (similar for port)
> This is wrong for /bin/sh shell (our shebang in bin/cassandra) and this does 
> not work, probably in bash only, because /bin/sh does not understand what 
> "[[" is nor it understand what "==" is.
> The reason this was never detected so far is that the logic will never come 
> there when MX4J_ADDRESS and / or MX4J_PORT is commented out couple lines 
> above.



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

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

Reply via email to