You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Ekaterina Dimitrova (Jira)" <ji...@apache.org> on 2022/09/27 02:43:00 UTC

[jira] [Comment Edited] (CASSANDRA-16895) Support Java 17

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

Ekaterina Dimitrova edited comment on CASSANDRA-16895 at 9/27/22 2:42 AM:
--------------------------------------------------------------------------

Short update:
 * CircleCI POC link expired. I rebased on trunk and posted branch here - [https://github.com/ekaterinadimitrova2/cassandra/tree/16895-trunk-sept] ; New CI run initiated here: [jdk17|https://app.circleci.com/pipelines/github/ekaterinadimitrova2/cassandra/1949/workflows/aeac69a7-7132-483f-90c2-31d3200f2499] and [jdk11|https://app.circleci.com/pipelines/github/ekaterinadimitrova2/cassandra/1949/workflows/2c4c1108-06c0-40ac-a591-57bfee60964d] There were more tests failing due to some merge issues as we had soon some reorganization of the pom files. Fixed some of them in the last commit and rerun some of the affected tests successfully. Overall current trunk didn't change too much from when I tested in late March
 * In order to be able to compile with jdk17, I just commented out the scripted UDFs related code and also commented out related tests to remove the noise until proper removal happen in CASSANDRA-17281. That one will wait a bit as there were some discussions on refactoring in that area of the code. 
 * I am revising separately current accesses we already have to JDK internals. Opening tickets and updating carefully dependencies in separate tickets. 
 * Regarding the JDK outreach program, I contacted an Oracle representative who confirmed Cassandra will be added. So far I still have issues to access their private discussion list. I will have to ping them again...


was (Author: e.dimitrova):
Short update:
 * CircleCI POC link expired. I rebased on trunk and posted it here - [https://github.com/ekaterinadimitrova2/cassandra/tree/16895-trunk-sept] ; New CI run initiated here: [jdk17|https://app.circleci.com/pipelines/github/ekaterinadimitrova2/cassandra/1949/workflows/aeac69a7-7132-483f-90c2-31d3200f2499] and [jdk11|https://app.circleci.com/pipelines/github/ekaterinadimitrova2/cassandra/1949/workflows/2c4c1108-06c0-40ac-a591-57bfee60964d] There were more tests failing due to some merge issues as we had soon some reorganization of the pom files. Fixed some of them in the last commit and rerun some of the affected tests successfully. Overall current trunk didn't change too much from when I tested in late March
 * In order to be able to compile with jdk17, I just commented out the scripted UDFs related code and also commented out related tests to remove the noise until proper removal happen in CASSANDRA-17281. That one will wait a bit as there were some discussions on refactoring in that area of the code. 
 * I am revising separately current accesses we already have to JDK internals. Opening tickets and updating carefully dependencies in separate tickets. 
 * Regarding the JDK outreach program, I contacted an Oracle representative who confirmed Cassandra will be added. So far I still have issues to access their private discussion list. I will have to ping them again...

> Support Java 17
> ---------------
>
>                 Key: CASSANDRA-16895
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-16895
>             Project: Cassandra
>          Issue Type: Task
>          Components: Build
>            Reporter: Ekaterina Dimitrova
>            Assignee: Ekaterina Dimitrova
>            Priority: Normal
>             Fix For: 5.x
>
>
>   This ticket is intended to group all issues found to support Java 17 in the future.
> Upgrade steps:
>  * [Dependencies |https://mvnrepository.com/artifact/org.apache.cassandra/cassandra-all/4.0.1]to be updated (not all but at least those that require an update in order to work with Java 17)
>  * More encapsulated JDK internal APIs. Some of the issues might be solved with the dependencies updates
>  * Currently trunk compiles if we remove the Nashorn dependency (ant script tag, used for the test environment; UDFs) . The oracle recommendation to use  Nashorn-core won't work for the project as it is under GPL 2.0. Most probably we will opt in for graal-sdk licensed under UPL
>  * All tests to be cleaned
>  * CI environment to be setup



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

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