[ 
https://issues.apache.org/jira/browse/CASSANDRA-19650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17848505#comment-17848505
 ] 

Michael Semb Wever commented on CASSANDRA-19650:
------------------------------------------------


In addition, CASSANDRA-19636 appears to have broken jdk-switching 
(upgrade_through_versions) when, after an upgrade and jdk-switch, a new node is 
added that relies on a jdk-switch.

The following logging shows a four node cluster starting up using jdk8 (from 
matching $PATH and $JAVA_HOME) on 4.1.6.  It then switch all four nodes to 
jdk11 (using $JAVA11_HOME) and 5.0.  But when it tries to add the 5th node (on 
jdk11 and 5.0) it suddenly fails.

{noformat}
upgrade_tests/upgrade_through_versions_test.py::TestUpgrade_indev_4_1_x_To_indev_5_0_x::test_bootstrap_multidc
 
…

21:00:02,930 ccm INFO Supported Java versions for Cassandra distribution in 
'/parallel-ci/work/.ccm/repository/githubCOLONapacheSLASHcassandra-4.1': None
21:00:03,64 ccm INFO node1: Using the current Java 8 available on PATH for the 
current invocation of Cassandra 4.1.6.
21:00:03,153 ccm INFO Supported Java versions for Cassandra distribution in 
'/parallel-ci/work/.ccm/repository/githubCOLONapacheSLASHcassandra-4.1': None
21:00:03,284 ccm INFO node1: Using the current Java 8 available on PATH for the 
current invocation of Cassandra 4.1.6.
21:00:03,333 ccm INFO Starting node1 with 
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 java_version=8 
cassandra_version=4.1.6, 
install_dir=/parallel-ci/work/.ccm/repository/githubCOLONapacheSLASHcassandra-4.1
21:00:08,458 ccm INFO Supported Java versions for Cassandra distribution in 
'/parallel-ci/work/.ccm/repository/githubCOLONapacheSLASHcassandra-4.1': None
21:00:08,595 ccm INFO node2: Using the current Java 8 available on PATH for the 
current invocation of Cassandra 4.1.6.
21:00:08,707 ccm INFO Supported Java versions for Cassandra distribution in 
'/parallel-ci/work/.ccm/repository/githubCOLONapacheSLASHcassandra-4.1': None
21:00:08,841 ccm INFO node2: Using the current Java 8 available on PATH for the 
current invocation of Cassandra 4.1.6.
21:00:08,889 ccm INFO Starting node2 with 
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 java_version=8 
cassandra_version=4.1.6, 
install_dir=/parallel-ci/work/.ccm/repository/githubCOLONapacheSLASHcassandra-4.1
21:00:23,522 ccm INFO Supported Java versions for Cassandra distribution in 
'/parallel-ci/work/.ccm/repository/githubCOLONapacheSLASHcassandra-4.1': None
21:00:23,657 ccm INFO node3: Using the current Java 8 available on PATH for the 
current invocation of Cassandra 4.1.6.
21:00:23,756 ccm INFO Supported Java versions for Cassandra distribution in 
'/parallel-ci/work/.ccm/repository/githubCOLONapacheSLASHcassandra-4.1': None
21:00:23,901 ccm INFO node3: Using the current Java 8 available on PATH for the 
current invocation of Cassandra 4.1.6.
21:00:23,947 ccm INFO Starting node3 with 
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 java_version=8 
cassandra_version=4.1.6, 
install_dir=/parallel-ci/work/.ccm/repository/githubCOLONapacheSLASHcassandra-4.1
21:00:38,573 ccm INFO Supported Java versions for Cassandra distribution in 
'/parallel-ci/work/.ccm/repository/githubCOLONapacheSLASHcassandra-4.1': None
21:00:38,707 ccm INFO node4: Using the current Java 8 available on PATH for the 
current invocation of Cassandra 4.1.6.
21:00:38,803 ccm INFO Supported Java versions for Cassandra distribution in 
'/parallel-ci/work/.ccm/repository/githubCOLONapacheSLASHcassandra-4.1': None
21:00:38,931 ccm INFO node4: Using the current Java 8 available on PATH for the 
current invocation of Cassandra 4.1.6.
21:00:38,978 ccm INFO Starting node4 with 
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 java_version=8 
cassandra_version=4.1.6, 
install_dir=/parallel-ci/work/.ccm/repository/githubCOLONapacheSLASHcassandra-4.1
…
21:02:18,416 ccm INFO Supported Java versions for Cassandra distribution in 
'/parallel-ci/work/.ccm/repository/githubCOLONapacheSLASHcassandra-5.0': [11, 
17]
21:02:18,556 ccm WARNING node1: The current Java 8 is not supported by 
Cassandra 5.0 (supported versions: [11, 17]).
21:02:18,557 ccm INFO node1: CCM has found {17: 'JAVA17_HOME', 8: 'JAVA_HOME', 
11: 'JAVA11_HOME'} Java distributions, the required Java version for Cassandra 
5.0 is [11, 17].
…
FAILED
{noformat}
ref: https://pastebin.com/JfGziJHh
[~aweisberg], have you been able to provide steps to reproduce this ?

> CCM wrongly interprets CASSANDRA_USE_JDK11 for Cassandra 4.x
> ------------------------------------------------------------
>
>                 Key: CASSANDRA-19650
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-19650
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Build, Test/dtest/python
>            Reporter: Jacek Lewandowski
>            Assignee: Jacek Lewandowski
>            Priority: Normal
>             Fix For: NA
>
>
> CCM interprets {{CASSANDRA_USE_JDK11}} only by its existence in the 
> environment rather than by its actual value (true/false). 
> I can see two solutions:
> - make it interpret {{CASSANDRA_USE_JDK11}} properly
> - do not take into account {{CASSANDRA_USE_JDK11}} in the current env and set 
> it or unset it automatically when starting a node basing on which Java 
> version was selected



--
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