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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Duplicate
    • None
    • None
    • None
    • Ubuntu 14.04
      openjdk 7 patch >=100

    • 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

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

              Dates

                Created:
                Updated:
                Resolved: