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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • None
    • None
    • 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.

      Attachments

        1. HADOOP-10362.patch
          0.6 kB
          Sanghyun Yun

        Issue Links

          Activity

            People

              Unassigned Unassigned
              yuzhihong@gmail.com Ted Yu
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: