Hadoop Common
  1. Hadoop Common
  2. HADOOP-10362

Closing of Reader in HadoopArchives#HArchiveInputFormat#getSplits() should check against null

    Details

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

      Description

            try {
              reader = new SequenceFile.Reader(fs, src, jconf);
      ...
            finally {
              reader.close();
            }
      

      If Reader ctor throws exception, the close() method would be called on null object.

      1. HADOOP-10362.patch
        0.6 kB
        Sanghyun Yun

        Activity

          People

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

            Dates

            • Created:
              Updated:

              Development