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

Potential resource leaks in BinaryProtocol$TeeOutputStream.java

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.23.0
    • Fix Version/s: 2.8.0, 3.0.0-alpha2
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      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

              • Assignee:
                sunilg Sunil G
                Reporter:
                raviteja Ravi Teja Ch N V
              • Votes:
                0 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: