cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sylvain Lebresne (JIRA)" <j...@apache.org>
Subject [jira] [Reopened] (CASSANDRA-2785) should export JAVA variable in the bin/cassandra and use that in the cassandra-env.sh when check for the java version
Date Thu, 04 Aug 2011 16:33:27 GMT

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

Sylvain Lebresne reopened CASSANDRA-2785:
-----------------------------------------


This is causing problems, see CASSANDRA-2992.

I have only reverted this patch on a specific branch so that it doesn't block 0.8.3 release.
However, I have not reverted yet on 0.8 branch (or trunk), so that it could be fixed incrementally.

As a side note, it would be nice to set the correct fix version and reviewer when marking
an issue resolved.

> should export JAVA variable in the bin/cassandra and use that in the cassandra-env.sh
when check for the java version
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-2785
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2785
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Jackson Chung
>            Assignee: paul cannon
>         Attachments: 0001-use-JAVA-in-cassandra-env.sh.patch.txt, 0002-fix-usage-of-bash-n-tests.patch.txt
>
>
> I forgot which jira we add this java -version check in the cassandra-env.sh (for adding
jamm to the javaagent), but we should probably use the variable JAVA set in bin/cassandra
(will need export) and use $JAVA instead of "java" in the cassandra-env.sh
> In a situation where JAVA_HOME may have been properly set as the Sun's java but the PATH
still have the OpenJDK's java in front, the check will fail to add the jamm.jar, even though
the cassandra jvm is properly started via the Sun's java.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message