You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jon Meredith (JIRA)" <ji...@apache.org> on 2019/07/19 19:46:00 UTC

[jira] [Created] (CASSANDRA-15240) Reinstate support for native libraries for in-JVM dtests

Jon Meredith created CASSANDRA-15240:
----------------------------------------

             Summary: Reinstate support for native libraries for in-JVM dtests
                 Key: CASSANDRA-15240
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-15240
             Project: Cassandra
          Issue Type: Improvement
          Components: Test/dtest
            Reporter: Jon Meredith


While working on CASSANDRA-15170 native libraries for libc functions, epoll support and openssl were observed holding gcroots to the instance class loaders when in-JVM dtest {{with(NETWORK)}} support was enabled. The solution for CASSANDRA-15170 was to disable native libraries to get everything working, but this is not ideal because in-JVM tests will not be testing the real code on that platform.

One proposed solution from [~ifesdjeen] and [~benedict] is to introduce an additional classloader per-Cassandra version that can be used for loading native libraries and share the {{CassandraVersionClassLoader}} by each instance of that version, enabling the {{InstanceClassLoader}} to be garbage collected.

{noformat}
CLibrary 
 com.sun.jna.Native.registeredClasses
 com.sun.jna.Native.options
 com.sun.jna.Native.registredLibraries

Netty
   io.netty.channel.ChannelException
   io.netty.channel.unix.DatagramSocketAddress
   io.netty.channel.unix.PeerCredentials

   io.netty.internal.tcnative.CertificateCallbackTask
   io.netty.internal.tcnative.CertificateVerifierTask
   io.netty.internal.tcnative.SSLPrivateKeyMethodDecryptTask
   io.netty.internal.tcnative.SSLPrivateKeyMethodSignTask
   io.netty.internal.tcnative.SSLPrivateKeyMethodTask
   io.netty.internal.tcnative.SSLTask
{noformat}



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org