[
https://issues.apache.org/jira/browse/ZOOKEEPER-2340?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15048164#comment-15048164
]
Arshad Mohammad commented on ZOOKEEPER-2340:
--------------------------------------------
Thanks [~neha.bathra] for reporting the issue.
The problem is because bellow expression, in {{bin/zkServer.sh}}, evaluates to
true for any value assigned to {{JMXDISABLE}}
{code}
if [ "x$JMXDISABLE" = "x" ]
{code}
I think to fix we can replace above expression with:
{code}
if [ "x$JMXDISABLE" = "x" ] || [ "$JMXDISABLE" = 'true' ]
{code}
> JMX is disabled even if JMXDISABLE is false
> -------------------------------------------
>
> Key: ZOOKEEPER-2340
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2340
> Project: ZooKeeper
> Issue Type: Bug
> Reporter: neha
> Priority: Minor
>
> Currently, to enable jmx for zookeeper, need to comment the property
> JMXDISABLE as JMXDISABLE=false continues to disable JMX.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)