Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-2631

Potential resource leaks in BinaryProtocol$TeeOutputStream.java

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.23.0
    • 2.8.0, 3.0.0-alpha2
    • None
    • None
    • Reviewed

    Description

      BinaryProtocol$TeeOutputStream.java
      public void close() throws IOException {
            flush();
            file.close();
            out.close();
          }
      

      In the above code, if the file.close() throws any exception out will not be closed.

      Attachments

        1. 0001-MAPREDUCE-2631.patch
          7 kB
          Sunil G
        2. 0002-MAPREDUCE-2631.patch
          7 kB
          Sunil G
        3. 0003-MAPREDUCE-2631.patch
          7 kB
          Sunil G
        4. 0004-MAPREDUCE-2631.patch
          7 kB
          Sunil G
        5. MAPREDUCE-2631.0005.patch
          8 kB
          Sunil G
        6. MAPREDUCE-2631.0006.patch
          8 kB
          Sunil G
        7. MAPREDUCE-2631.0007.patch
          7 kB
          Sunil G
        8. MAPREDUCE-2631.02.patch
          7 kB
          Ravi Prakash
        9. MAPREDUCE-2631.1.patch
          6 kB
          Ravi Teja Ch N V
        10. MAPREDUCE-2631.2.patch
          7 kB
          Ravi Teja Ch N V
        11. MAPREDUCE-2631.3.patch
          8 kB
          Ravi Teja Ch N V
        12. MAPREDUCE-2631.patch
          6 kB
          Ravi Teja Ch N V

        Issue Links

          Activity

            People

              sunilg Sunil G
              raviteja Ravi Teja Ch N V
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: