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

InputStream is not closed in VersionInfo ctor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.4.0
    • util
    • None
    • Reviewed

    Description

            InputStream is = Thread.currentThread().getContextClassLoader()
              .getResourceAsStream(versionInfoFile);
            if (is == null) {
              throw new IOException("Resource not found");
            }
            info.load(is);
      

      is should be closed at the end of the method.

      Attachments

        1. HADOOP-10368.2.patch
          1 kB
          Tsuyoshi Ozawa
        2. HADOOP-10368.1.patch
          1 kB
          Tsuyoshi Ozawa

        Activity

          People

            ozawa Tsuyoshi Ozawa
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: