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

Resource leak - Close the open resource handles (File handles) before throwing the exception from the SequenceFile constructor

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.2, 1-win
    • Fix Version/s: 1-win
    • Component/s: fs, io
    • Labels:
      None
    • Target Version/s:

      Description

      I noticed this problem while I am working on porting HIVE to work on windows. Hive is attempting to create this class object to validate the file format and end up with resource leak. Because of this leak, we can’t move, rename or delete the files on windows when there is an open file handle whereas in UNIX we can perform all these operation with no issues even with open file handles.

      Please suggest me if you similar issues in any other places.

        Attachments

        1. HADOOP-8486-branch-1-win.patch
          2 kB
          Kanna Karanam
        2. HADOOP-8486-branch-1-win-(2).patch
          2 kB
          Kanna Karanam
        3. HADOOP-8486-branch-1-win-(3).patch
          4 kB
          Kanna Karanam
        4. HADOOP-8486-branch-1-win-(4).patch
          4 kB
          Sanjay Radia
        5. HADOOP-8486-branch-1-win-(5).patch
          0.6 kB
          Kanna Karanam

          Issue Links

            Activity

              People

              • Assignee:
                kannakar@microsoft.com Kanna Karanam
                Reporter:
                kannakar@microsoft.com Kanna Karanam
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: