[
https://issues.apache.org/jira/browse/CASSANDRA-18431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17709146#comment-17709146
]
Ekaterina Dimitrova commented on CASSANDRA-18431:
-------------------------------------------------
Committed:
To https://github.com/apache/cassandra
[58f5301e78..d1d733bee5|https://github.com/apache/cassandra/commit/d1d733bee5ba85088a77d5c1430705dbb47ab68c]
trunk -> trunk
> 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: [email protected]
For additional commands, e-mail: [email protected]