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

InputStream is not closed in VersionInfo ctor

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4.0
    • Component/s: util
    • Labels:
      None
    • Hadoop Flags:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: