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

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.2, 1-win
    • 1-win
    • fs, io
    • None

    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-(5).patch
          0.6 kB
          Kanna Karanam
        2. HADOOP-8486-branch-1-win-(4).patch
          4 kB
          Sanjay Radia
        3. HADOOP-8486-branch-1-win-(3).patch
          4 kB
          Kanna Karanam
        4. HADOOP-8486-branch-1-win-(2).patch
          2 kB
          Kanna Karanam
        5. HADOOP-8486-branch-1-win.patch
          2 kB
          Kanna Karanam

        Issue Links

          Activity

            People

              kannakar@microsoft.com Kanna Karanam
              kannakar@microsoft.com Kanna Karanam
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: