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.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6.0
    • Fix Version/s: 2.7.0
    • Component/s: fs
    • Labels:
      None
    • Target Version/s:

      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.005.patch
          2 kB
          Varun Saxena
        3. HADOOP-11349.004.patch
          2 kB
          Varun Saxena
        4. HADOOP-11349.003.patch
          2 kB
          Varun Saxena
        5. HADOOP-11349.002.patch
          1 kB
          Varun Saxena

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: