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 2023/04/05 20:53:00 UTC

[jira] [Commented] (CASSANDRA-18431) Cassandra doesn't start on JDK17

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

Ekaterina Dimitrova commented on CASSANDRA-18431:
-------------------------------------------------

[Patch|https://github.com/ekaterinadimitrova2/cassandra/commit/77b2a7a7d230a404339e1d7413e01d3664b8a9c3],  [CI|https://app.circleci.com/pipelines/github/ekaterinadimitrova2/cassandra/2322/workflows/20db9d1b-90ee-44dc-9cd5-6360b5f9671d]
[~dcapwell], [~mck] - I believe this brought us to the CI run seen [here|https://app.circleci.com/pipelines/github/ekaterinadimitrova2/cassandra/2322/workflows/20db9d1b-90ee-44dc-9cd5-6360b5f9671d] before CASSANDRA-17199
We can revert when jamm gets upgraded in CASSANDRA-18329

> Cassandra doesn't start on JDK17
> --------------------------------
>
>                 Key: CASSANDRA-18431
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-18431
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Build
>            Reporter: Ekaterina Dimitrova
>            Assignee: Ekaterina Dimitrova
>            Priority: Normal
>             Fix For: 5.x
>
>
> CASSANDRA-17199 added a new call to jamm measureDeep which hits some JDK internals and prevents us from starting Cassandra with JDK17. This will be solved with CASSANDRA-18329.
> Until new version of jamm lands we can workaround the problem either by adding add-opens or by replacing temporarily
> {code:java}
> public static final long IPV6_SOCKET_ADDRESS_SIZE = ObjectSizes.measureDeep(new InetSocketAddress(getIpvAddress(16), 42));
> {code}
> with
> {code:java}
> public static final long IPV6_SOCKET_ADDRESS_SIZE = 168;
> {code}
> measured with JOL.
> Then we can switch back to the current call [here|https://github.com/apache/cassandra/commit/4444721b6de555352bf0ac3ef7e36f94dc832f41#diff-1122d7d3efe9721af7244d373e66378f7e90cb05fd65859a52e8a3ea58a7c8f9R45] later.



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