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

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

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Fix Version/s: 4.0, 4.0-alpha4
    • Component/s: Test/unit
    • Labels:
      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

            • Assignee:
              mck Michael Semb Wever Assign to me
              Reporter:
              mck Michael Semb Wever
              Authors:
              Michael Semb Wever
              Reviewers:
              Yuki Morishita

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment