Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-10962

Flags for posix_fadvise are not valid in some architectures

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.1
    • Fix Version/s: 2.6.0
    • Component/s: native
    • Labels:
      None
    • Environment:

      System z/Linux

    • Target Version/s:

      Description

      In org.apache.hadoop.io.nativeio.NativeIO.java, the posix_fadvise flag parameter is hardcoded to the most common values in fcntl.h.

      However, not all architectures use the same values (in this case, System z/Linux) A better approach would be to not make assumptions about fcntl.h values (or any other system constants).

      This bug results in calls to posix_fadvise failing in zLinux.

        Attachments

        1. HADOOP-10962.patch
          2 kB
          David Villegas

          Issue Links

            Activity

              People

              • Assignee:
                dvillegas David Villegas
                Reporter:
                dvillegas David Villegas
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: