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

Stefan Miklosovic commented on CASSANDRA-18844:
-----------------------------------------------

Well in theory it should be all backward compatible but it is not ... e.g. when 
one runs Cassandra with Java 21, it errors on:

{code}
ERROR [main] 2023-09-13 10:41:35,551 CassandraDaemon.java:875 - Exception 
encountered during startup
java.lang.UnsupportedOperationException: The Security Manager is deprecated and 
will be removed in a future release
        at java.base/java.lang.System.setSecurityManager(System.java:429)
        at 
org.apache.cassandra.security.ThreadAwareSecurityManager.install(ThreadAwareSecurityManager.java:96)
        at 
org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:247)
        at 
org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:729)
        at 
org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:853)
{code}

Additionally, there is also jvm11/17-server.options. What would happen when 
using 21? No file would be actually picked as that is resolved dynamically upon 
startup.

Mick suggested offline that we need to use version ranges here. We might look 
into how that would look like in our scenario.

> Cassandra 5 Debian package only runs on OpenJDK
> -----------------------------------------------
>
>                 Key: CASSANDRA-18844
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-18844
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Packaging
>            Reporter: Jackson Fleming
>            Assignee: Jackson Fleming
>            Priority: Normal
>             Fix For: 5.x
>
>         Attachments: image-2023-09-13-18-53-38-884.png, 
> image-2023-09-13-21-03-57-010.png, image-2023-09-13-21-04-42-525.png
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> A recent change to the Cassandra 5 branch has caused the Cassandra deb 
> package to no longer install on systems that don't run OpenJDK
>  
> The following line is too restrictive
> [https://github.com/apache/cassandra/blob/trunk/debian/control#L14]
> It should be modified to use the java11-runtime and java17-runtime virtual 
> packages.



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