[
https://issues.apache.org/jira/browse/CASSANDRA-18616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17737889#comment-17737889
]
Ekaterina Dimitrova commented on CASSANDRA-18616:
-------------------------------------------------
Spoke to Benedict Elliott Smith. There is no particular reason for tests not to
work on JDK11 build with JDK17 runtime. Not a blocker if they don't but
expected to work.
He pointed to me
{code:java}
[junit-timeout] # Problematic frame:
[junit-timeout] # V [libjvm.dylib+0x5086e5]
java_lang_String::create_from_symbol(Symbol*, JavaThread*)+0x15{code}
and related JDK bug:
https://mail.openjdk.org/pipermail/hotspot-dev/2016-September/024480.html and
https://bugs.openjdk.org/browse/JDK-8164561
It seems there’s some symbol in the classfile that is being turned into a
string unsuccessfully.
I ran a few more tests and realized that when I run the full suite of tests the
first time, they pass, then if I do not run _ant realclean & ant jar_ before
running them again, the _cassandra.testtag_ gets the default value
{_}testtag_IS_UNDEFINED{_}:
{code:java}
Testcase:
org.apache.cassandra.simulator.test.ShortPaxosSimulationTest:simulationTest-cassandra.testtag_IS_UNDEFINED{code}
and the tests fail. This does not happen if we run a single test in a loop, and
the issue is not presented in CI (we don't have jobs to run a full test suite
in a loop).
I will add the CI job for the JDK11 build + JDK17 tests for the simulator; it
seems the issue is how we run tests. We very rarely run a full suite locally,
moreover, more than once in a row.
> Simulator Java 17 support
> -------------------------
>
> Key: CASSANDRA-18616
> URL: https://issues.apache.org/jira/browse/CASSANDRA-18616
> Project: Cassandra
> Issue Type: Task
> Components: Test/fuzz
> Reporter: Ekaterina Dimitrova
> Assignee: Ekaterina Dimitrova
> Priority: Normal
> Fix For: 5.x
>
>
> Add Java 17 support for the simulator
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]