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

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

It seems we fixed the issue partially, but I posted a wrong CI link last night. 
I am sorry about that. We still have to address some failures here related to 
opening JDK internals.

This is the right CI link that I should have posted... - 
[https://app.circleci.com/pipelines/github/ekaterinadimitrova2/cassandra/2326/workflows/73f0ac22-02c5-4155-aad3-cd60c2b0cfb9]

We need to add the same add-opens for client-options so tools like the token 
generator can use it.

Ninja fix 
[here|https://github.com/ekaterinadimitrova2/cassandra/commit/b71260b9695dd97a96661a47ec63042e64d32d70],
 running CI 
[here|https://app.circleci.com/pipelines/github/ekaterinadimitrova2/cassandra/2327/workflows/6cc123af-e2de-41c4-85bb-2841b6d9c679]

I will commit if nothing new pop up, I ran locally a few of the tests and they 
were passing now.

> 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.0
>
>
> 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-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to