Bret McGuire created CASSJAVA-94:
------------------------------------

             Summary: Be smarter about which Java version we use for ccm
                 Key: CASSJAVA-94
                 URL: https://issues.apache.org/jira/browse/CASSJAVA-94
             Project: Apache Cassandra Java driver
          Issue Type: Improvement
            Reporter: Bret McGuire


Issue was discovered and raised by [~aratnofsky] in conversation... I'm just 
documenting the problem. :)

 

Current build passes the JVM version to use for integration testing (think ccm) 
[via Maven 
params|https://github.com/apache/cassandra-java-driver/blob/4.19.0/pom.xml#L957-L980]
 which ultimately make their way into args to [the Surefire 
plugin|https://github.com/apache/cassandra-java-driver/blob/4.19.0/pom.xml#L732].
  The test infrastructure then uses CcmBridge to actually execute ccm.  In a 
few cases CcmBridge overrides the Java version used by ccm via [the 
"--jvm-version" CLI 
arg|https://github.com/apache/cassandra-java-driver/blob/4.19.0/test-infra/src/main/java/com/datastax/oss/driver/api/testinfra/ccm/CcmBridge.java#L329-L332]
 but these conditions are pretty limited; they're mainly used for various DSE 
versions as of this writing.

 

Absent this config ccm will just use whatever is set in the env vars... and 
this falls back to what's passed in via Surefire.  But that lands us with some 
awkward mismatches for various Cassandra version/JVM version combinations:

 
{noformat}
21:21:39.050 [Exec Stream Pumper] ERROR c.d.o.d.api.testinfra.ccm.CcmBridge - 
ccmerr> 21:21:39,50 ccm WARNING node1: The current Java 21 is not supported by 
Cassandra 4.0.17 (supported versions: [8, 11]).  
{noformat}
 

We should specify a fixed JVM version to use for a given version of ccm and 
pass this information explicitly via CcmBridge in most (all?) cases.  This will 
allow us to vary the JVM version used for the tests themselves without having 
to worry about whether they introduce a compat problem with Cassandra.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to