Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-11735

cassandra-env.sh doesn't test the correct java version

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Low
    • Resolution: Duplicate
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Ubuntu 14.04
      openjdk 7 patch >=100

    • Severity:
      Low

      Description

      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 "\<".

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mbugeia Maxime Bugeia
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: