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

Flags for posix_fadvise are not valid in some architectures

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4.1
    • 2.6.0
    • native
    • None
    • System z/Linux

    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

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

              Dates

                Created:
                Updated:
                Resolved: