Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-16615

Incompatible JNA libraries cause unnecessary failures when using cassandra-all jar.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Normal
    • Resolution: Unresolved
    • None
    • Local/Other
    • None
    • Code - Bug - Unclear Impact
    • Low
    • Normal
    • User Report
    • All
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            drohrer Doug Rohrer
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: