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

SharedFileDescriptorFactory should not allocate sparse files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.5.0
    • 2.6.0
    • caching
    • None
    • HDFS Data node, with 8 gb tmpfs in /dev/shm

    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

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

              Dates

                Created:
                Updated:
                Resolved: