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

Ekaterina Dimitrova commented on CASSANDRA-18180:
-------------------------------------------------

A few notes from CASSANDRA-17992:
When using JDK provider and not OpenSSL, the class cast exception is there with 
JDK17, no matter of Netty Version. We do not see the issue in Python DTests as 
they seem to rely on OpenSSL.

For the record, comment by [~benedict] on CASSANDRA-17992:
{quote}Yes, the GaloisCounterMode appears to make about DirectBuffer and their 
attachments here.

bq. Looking again at the rest of the JDK, I'm not actually sure attachments can 
be accessed publicly, so this is probably our problem rather than the JDK's. 
However, we might be able to fix it by simply having Chunk implement 
DirectBuffer, and having it return its address.
{quote}
To be investigated further

> bulkLoaderSuccessfullyStreamsOverSsl fails with ClassCastException on JDK17
> ---------------------------------------------------------------------------
>
>                 Key: CASSANDRA-18180
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-18180
>             Project: Cassandra
>          Issue Type: Bug
>          Components: CI
>            Reporter: Ekaterina Dimitrova
>            Priority: Normal
>
> While working on CASSANDRA-17992 we hit: 
> {code:java}
> java.lang.ClassCastException: class 
> org.apache.cassandra.utils.memory.BufferPool$Chunk cannot be cast to class 
> sun.nio.ch.DirectBuffer (org.apache.cassandra.utils.memory.BufferPool$Chunk 
> is in unnamed module of loader 'app'; sun.nio.ch.DirectBuffer is in module 
> java.base of loader 'bootstrap')\n\tat 
> java.base/com.sun.crypto.provider.GaloisCounterMode$GCMEngine.overlapDetection(GaloisCounterMode.java:865)\n\tat
>  
> java.base/com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.doFinal(GaloisCounterMode.java:1502)\n\tat
>  
> java.base/com.sun.crypto.provider.GaloisCounterMode.engineDoFinal(GaloisCounterMode.java:447)\n\tat
>  
> {code}
> The issue is exposed with JDK 17, trunk; if interested, ping [~e.dimitrova] 
> for current branch as there is no feature branch at the moment



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to