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

BufferedOutputStream in FileUtil#unpackEntries() should be closed in finally block

    Details

    • Hadoop Flags:
      Reviewed

      Description

          BufferedOutputStream outputStream = new BufferedOutputStream(
              new FileOutputStream(outputFile));
      ...
          outputStream.flush();
          outputStream.close();
      

      outputStream should be closed in finally block.

        Attachments

        1. HADOOP-10365.2.patch
          1 kB
          Sanghyun Yun
        2. HADOOP-10365.3.patch
          1 kB
          Sanghyun Yun
        3. HADOOP-10365.4.patch
          1 kB
          Sanghyun Yun
        4. HADOOP-10365.5.patch
          1 kB
          Kiran Kumar M R
        5. HADOOP-10365.6.patch
          1 kB
          Tsuyoshi Ozawa
        6. HADOOP-10365.6.patch
          1 kB
          Kiran Kumar M R
        7. HADOOP-10365.patch
          1 kB
          Sanghyun Yun

          Activity

            People

            • Assignee:
              kiranmr Kiran Kumar M R
              Reporter:
              yuzhihong@gmail.com Ted Yu
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: