[ https://issues.apache.org/jira/browse/HADOOP-10368?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tsuyoshi OZAWA updated HADOOP-10368: ------------------------------------ Assignee: Tsuyoshi OZAWA Status: Patch Available (was: Open) > InputStream is not closed in VersionInfo ctor > --------------------------------------------- > > Key: HADOOP-10368 > URL: https://issues.apache.org/jira/browse/HADOOP-10368 > Project: Hadoop Common > Issue Type: Bug > Reporter: Ted Yu > Assignee: Tsuyoshi OZAWA > Priority: Minor > Attachments: HADOOP-10368.1.patch > > > {code} > InputStream is = Thread.currentThread().getContextClassLoader() > .getResourceAsStream(versionInfoFile); > if (is == null) { > throw new IOException("Resource not found"); > } > info.load(is); > {code} > is should be closed at the end of the method. -- This message was sent by Atlassian JIRA (v6.1.5#6160)