You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Maxime Bugeia (JIRA)" <ji...@apache.org> on 2016/05/09 10:26:12 UTC

[jira] [Created] (CASSANDRA-11735) cassandra-env.sh doesn't test the correct java version

Maxime Bugeia created CASSANDRA-11735:
-----------------------------------------

             Summary: cassandra-env.sh doesn't test the correct java version
                 Key: CASSANDRA-11735
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-11735
             Project: Cassandra
          Issue Type: Bug
         Environment: Ubuntu 14.04
openjdk 7 patch >=100
            Reporter: Maxime Bugeia
            Priority: Minor


With the latest patch of openjdk, all nodetool actions fail and display "Cassandra 2.0 and later require Java 7u25 or later." because cassandra-env.sh test of java version is broken.
Line 102:
if [ "$JVM_VERSION" \< "1.7" ] && [ "$JVM_PATCH_VERSION"  \< "25" ] ; then
    echo "Cassandra 2.0 and later require Java 7u25 or later."
    exit 1;
fi

The second test cause all java patch >100 to be considered as inferior. One correct syntax is "-lt" instead of "\<".



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)