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

Ekaterina Dimitrova commented on CASSANDRA-16895:
-------------------------------------------------

I put a lot of work on this lately, I have already big part of the tests 
passing in Circle CI. I need to do a bit more work before I come with a more 
detailed update on the outstanding issues, probably tomorrow.

For now, I wanted to mention three problems:
 * we hit CASSANDRA-16304
 * there is unfortunately some problem related to the TLS tests - 
[https://app.circleci.com/pipelines/github/ekaterinadimitrova2/cassandra/1478/workflows/0c8a2139-c59d-4169-be7a-4f83f71524f5/jobs/9622/tests#failed-test-0]
 I haven't had the time to dig too much but sounds unfriendly: 
_java.lang.ClassCastException: class 
org.apache.cassandra.utils.memory.BufferPool$Chunk cannot be cast to class 
sun.nio.ch.DirectBuffer_   Maybe [~maulin.vasavada] or [~benedict] will have 
some thoughts there. Just a heads up.
 * The in-jvm tests hit an issue with bytebuddy even if it is updated to latest 
version which supports Java up to version 18. I am still not sure why. I tried 
to consult the bytebuddy community and their only suggestion for now is that 
for some reason we don't use the latest version that I define in build.xml and 
I see it downloaded.... probably I am missing something but not sure what yet. 
_Unsupported class file major version 61 [junit-timeout] 
java.lang.IllegalArgumentException: Unsupported class file major version 61 
[junit-timeout] at 
net.bytebuddy.jar.asm.ClassReader.<init>(ClassReader.java:195) [junit-timeout] 
at net.bytebuddy.jar.asm.ClassReader.<init>(ClassReader.java:176) 
[junit-timeout] at 
net.bytebuddy.jar.asm.ClassReader.<init>(ClassReader.java:162) [junit-timeout] 
at net.bytebuddy.utility.OpenedClassReader.of(OpenedClassReader.java:86) 
[junit-timeout] at 
net.bytebuddy.dynamic.scaffold.TypeWriter$Default$ForInlining.create(TypeWriter.java:3394)
 [junit-timeout] at 
net.bytebuddy.dynamic.scaffold.TypeWriter$Default.make(TypeWriter.java:1933) 
[junit-timeout] at 
net.bytebuddy.dynamic.scaffold.inline.RedefinitionDynamicTypeBuilder.make(RedefinitionDynamicTypeBuilder.java:217)
 [junit-timeout] at 
net.bytebuddy.dynamic.scaffold.inline.AbstractInliningDynamicTypeBuilder.make(AbstractInliningDynamicTypeBuilder.java:120)
 [junit-timeout] at 
net.bytebuddy.dynamic.DynamicType$Builder$AbstractBase.make(DynamicType.java:3404)
 [junit-timeout] at 
net.bytebuddy.dynamic.DynamicType$Builder$AbstractBase$Delegator.make(DynamicType.java:3600)
 [junit-timeout] at 
org.apache.cassandra.distributed.test.FailingTruncationTest$BBFailHelper.install(FailingTruncationTest.java:68)
 [junit-timeout] at 
org.apache.cassandra.distributed.shared.AbstractBuilder$1.initialise(AbstractBuilder.java:312)
 [junit-timeout] at 
org.apache.cassandra.distributed.impl.AbstractCluster$Wrapper.newInstance(AbstractCluster.java:246)
 [junit-timeout] at 
org.apache.cassandra.distributed.impl.AbstractCluster$Wrapper.<init>(AbstractCluster.java:235)
 [junit-timeout] at 
org.apache.cassandra.distributed.Cluster.newInstanceWrapper(Cluster.java:43) 
[junit-timeout] at 
org.apache.cassandra.distributed.Cluster.newInstanceWrapper(Cluster.java:34) 
[junit-timeout] at 
org.apache.cassandra.distributed.impl.AbstractCluster.newInstanceWrapperInternal(AbstractCluster.java:549)
 [junit-timeout] at 
org.apache.cassandra.distributed.impl.AbstractCluster.<init>(AbstractCluster.java:504)
 [junit-timeout] at 
org.apache.cassandra.distributed.Cluster.<init>(Cluster.java:38) 
[junit-timeout] at 
org.apache.cassandra.distributed.shared.AbstractBuilder.createWithoutStarting(AbstractBuilder.java:158)
 [junit-timeout] at 
org.apache.cassandra.distributed.shared.AbstractBuilder.start(AbstractBuilder.java:140)
 [junit-timeout] at 
org.apache.cassandra.distributed.test.FailingTruncationTest.testFailingTruncation(FailingTruncationTest.java:43)
 [junit-timeout] at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
[junit-timeout] at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
 [junit-timeout] at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)_

*NOTE: The scripted UDFs and most of the related tests are commented out. I 
figured I want to know first all issues around the tests before we remove them, 
in case I hit something bigger. Also, I have to work further on Jenkins and 
clean some of the config.* 

> Support Java 17
> ---------------
>
>                 Key: CASSANDRA-16895
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-16895
>             Project: Cassandra
>          Issue Type: Task
>          Components: Build
>            Reporter: Ekaterina Dimitrova
>            Assignee: Ekaterina Dimitrova
>            Priority: Normal
>             Fix For: 4.x
>
>
>   This ticket is intended to group all issues found to support Java 17 in the 
> future.
> Upgrade steps:
>  * [Dependencies 
> |https://mvnrepository.com/artifact/org.apache.cassandra/cassandra-all/4.0.1]to
>  be updated (not all but at least those that require an update in order to 
> work with Java 17)
>  * More encapsulated JDK internal APIs. Some of the issues might be solved 
> with the dependencies updates
>  * Currently trunk compiles if we remove the Nashorn dependency (ant script 
> tag, used for the test environment; UDFs) . The oracle recommendation to use  
> Nashorn-core won't work for the project as it is under GPL 2.0. Most probably 
> we will opt in for graal-sdk licensed under UPL
>  * All tests to be cleaned
>  * CI environment to be setup



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to