Ted Yu created FLINK-2538:
-----------------------------
Summary: Potential resource leak in ClassLoaderUtil#getUserCodeClassLoaderInfo()
Key: FLINK-2538
URL:
https://issues.apache.org/jira/browse/FLINK-2538 Project: Flink
Issue Type: Bug
Reporter: Ted Yu
Priority: Minor
In ClassLoaderUtil#getUserCodeClassLoaderInfo() around line 76:
{code}
else {
try {
new JarFile(filePath);
bld.append(" (valid JAR)");
}
catch (Exception e) {
bld.append(" (invalid JAR: ").append(e.getMessage()).append(')');
}
}
{code}
The JarFile isn't closed before returning, leading to potential resource leak.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)