Hadoop Common
  1. Hadoop Common
  2. HADOOP-10365

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

    Details

    • Type: Bug Bug
    • Status: Patch Available
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: util
    • Labels:
      None

      Description

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

      outputStream should be closed in finally block.

      1. HADOOP-10365.patch
        1 kB
        Sanghyun Yun
      2. HADOOP-10365.2.patch
        1 kB
        Sanghyun Yun
      3. HADOOP-10365.3.patch
        1 kB
        Sanghyun Yun
      4. HADOOP-10365.4.patch
        1 kB
        Sanghyun Yun

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Ted Yu
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:

              Development