Jacek Lewandowski created CASSANDRA-18678:
---------------------------------------------
Summary: CCM does not select Java version properly
Key: CASSANDRA-18678
URL: https://issues.apache.org/jira/browse/CASSANDRA-18678
Project: Cassandra
Issue Type: Bug
Components: CI
Reporter: Jacek Lewandowski
Assignee: Jacek Lewandowski
CASSANDRA-18106 added a new method to {{commons.py}}
https://github.com/riptano/ccm/blob/master/ccmlib/common.py#L857 which is
called when Cassandra version is >= 4.2
{code:python}
def get_supported_jdk_versions(install_dir):
"""
Return the supported java versions from build.xml
Only works in > 4.1
"""
...
versions = ['8' if v == '1.8' else v for v in versions]
....
{code}
The problem is that this method returns a collection of strings, while later in
{{commons.py}}:
{code:python}
...
if current_java_version in versions:
jvm_version = current_java_version
...
{code}
the condition expects the collection to consists of ints and the condition
fails.
It is causing problems when you want to run the upgrade tests against Java 11
because it always goes to the next branch of the condition which results in
selecting the first supported version, which is 8.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]