Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-6912

SharedFileDescriptorFactory should not allocate sparse files

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5.0
    • Fix Version/s: 2.6.0
    • Component/s: caching
    • Labels:
      None
    • Environment:

      HDFS Data node, with 8 gb tmpfs in /dev/shm

    • Target Version/s:

      Description

      SharedFileDescriptor factory should not allocate sparse files. Sparse files can lead to a SIGBUS later in the short-circuit reader when we try to read from the sparse file and memory is not available.

      Note that if swap is enabled, we can still get a SIGBUS even with a non-sparse file, since the JVM uses MAP_NORESERVE in mmap.

        Attachments

        1. HDFS-6912.003.patch
          2 kB
          Colin McCabe
        2. HDFS-6912.002.patch
          2 kB
          Colin McCabe
        3. HDFS-6912.001.patch
          1.0 kB
          Colin McCabe

          Issue Links

            Activity

              People

              • Assignee:
                cmccabe Colin McCabe
                Reporter:
                gopalv Gopal Vijayaraghavan
              • Votes:
                0 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: