You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Stefan Miklosovic (Jira)" <ji...@apache.org> on 2022/11/03 10:58:00 UTC

[jira] [Commented] (CASSANDRA-16615) Incompatible JNA libraries cause unnecessary failures when using cassandra-all jar.

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

Stefan Miklosovic commented on CASSANDRA-16615:
-----------------------------------------------

hi [~drohrer], could you elaborate on what these "additional use-cases" are? Where are these exceptions throw? I think that would be nice to know in order to dive deeper into this, as of now I do not know where I would start if I was assigned to this.

> Incompatible JNA libraries cause unnecessary failures when using cassandra-all jar.
> -----------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-16615
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-16615
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Local/Other
>            Reporter: Doug Rohrer
>            Priority: Normal
>
> There are some additional use-cases where lack of JNA libraries is causing issues for users of cassandra-all libraries - cases where the native libraries were not loaded but we should be able to continue should be handled without throwing exceptions. Note that the Cassandra +server+ will not start up without an appropriate/compatible JNA jar available, but users of the cassandra-all libraries will have a more difficult time maintaining compatibility across JNA versions as they deploy to, for example, Spark setups that have newer/older JNA versions.
> Proposal:
> - Audit usages of `NativeLibrary`
> - Wherever possible, handle the -1 return values without failing +if `DatabaseDescriptor.isClientInitialized()` returns true+.
> - Maintain existing failure behavior if the system is not in client mode but the call returns -1.



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

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