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

cqlsh tests won't run on jdk1.8 (regression from CASSANDRA-10190)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 4.0-alpha4, 4.0
    • Test/unit
    • None

    Description

      Running the cqlsh tests on jdk1.8 no longer work.

      The commit bf9a1d487b for CASSANDRA-10190 broke this, by defaulting CASSANDRA_USE_JDK11 to true. See https://github.com/apache/cassandra/commit/bf9a1d487b9ba469e8d740cf7d1cd419535a7e79#diff-90e40e02845884b66e9006b25250ea5cR36-R38

      The following three work…

      jenv shell 1.8
      export CASSANDRA_USE_JDK11=false
      ./pylib/cassandra-cqlsh-tests.sh `pwd`
      
      jenv shell 11.0
      export CASSANDRA_USE_JDK11=true
      ./pylib/cassandra-cqlsh-tests.sh `pwd`
      
      jenv shell 1.8
      unset CASSANDRA_USE_JDK11
      ./pylib/cassandra-cqlsh-tests.sh `pwd`
      

      The following does not…

      jenv shell 1.8
      ./pylib/cassandra-cqlsh-tests.sh `pwd`
      
      BUILD FAILED
      /Users/mick/src/apache/casSANDRA/build.xml:292: -Duse.jdk11=true or $CASSANDRA_USE_JDK11=true cannot be set when building from java 8
      

      JDK 1.8 is expected to be the default. With CASSANDRA_USE_JDK11 being defined if/when JDK 11 is used.

      Attachments

        Issue Links

          Activity

            People

              mck Michael Semb Wever
              mck Michael Semb Wever
              Michael Semb Wever
              Yuki Morishita
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: