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

Add support for JNA mlockall(2) on POWER

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Low
    • Resolution: Fixed
    • Fix Version/s: 2.1.15, 2.2.7, 3.0.8, 3.8
    • Component/s: Legacy/Core
    • Labels:
      None
    • Environment:

      POWER architecture

      Description

      org.apache.cassandra.utils.CLibrary contains hard-coded C-macro values to be passed to system calls through JNA. These values are system-dependent, and as far as I investigated, Linux and AIX on the IBM POWER architecture define MCL_CURRENT and MCL_FUTURE (for mlockall(2)) as different values than the current hard-coded values. As a result, mlockall(2) fails on these platforms.

      WARN  18:51:51 Unknown mlockall error 22
      

      I am going to provide a patch to support JNA mlockall(2) on POWER.

        Attachments

          Activity

            People

            • Assignee:
              ReiOdaira Rei Odaira
              Reporter:
              ReiOdaira Rei Odaira
              Authors:
              Rei Odaira
              Reviewers:
              Joshua McKenzie
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: