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

RawLocalFileSystem leaks file descriptor while creating a file if creat succeeds but chmod fails.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.6.0
    • 2.7.0
    • fs
    • None

    Description

      RawLocalFileSystem currently implements some file creation operations as a sequence of 2 syscalls: create the file, followed by setting its permissions. If creation succeeds, but then setting permission causes an exception to be thrown, then there is no attempt to close the previously opened file, resulting in a file descriptor leak.

      Attachments

        1. HADOOP-11349.patch
          1 kB
          Varun Saxena
        2. HADOOP-11349.002.patch
          1 kB
          Varun Saxena
        3. HADOOP-11349.003.patch
          2 kB
          Varun Saxena
        4. HADOOP-11349.004.patch
          2 kB
          Varun Saxena
        5. HADOOP-11349.005.patch
          2 kB
          Varun Saxena

        Issue Links

          Activity

            People

              varun_saxena Varun Saxena
              cnauroth Chris Nauroth
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: