Ekaterina Dimitrova created CASSANDRA-18431:
-----------------------------------------------
Summary: Cassandra doesn't start on JDK17
Key: CASSANDRA-18431
URL: https://issues.apache.org/jira/browse/CASSANDRA-18431
Project: Cassandra
Issue Type: Bug
Reporter: Ekaterina Dimitrova
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
public static final long IPV6_SOCKET_ADDRESS_SIZE = ObjectSizes.measureDeep(new
InetSocketAddress(getIpvAddress(16), 42));
with
public static final long IPV6_SOCKET_ADDRESS_SIZE = 168;
taken from 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]