flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-9810) JarListHandler does not close opened jars
Date Thu, 12 Jul 2018 12:12:00 GMT

    [ https://issues.apache.org/jira/browse/FLINK-9810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16541537#comment-16541537
] 

ASF GitHub Bot commented on FLINK-9810:
---------------------------------------

Github user dawidwys commented on the issue:

    https://github.com/apache/flink/pull/6310
  
    +1


> JarListHandler does not close opened jars
> -----------------------------------------
>
>                 Key: FLINK-9810
>                 URL: https://issues.apache.org/jira/browse/FLINK-9810
>             Project: Flink
>          Issue Type: Bug
>          Components: REST, Webfrontend
>    Affects Versions: 1.5.0, 1.4.2, 1.6.0
>            Reporter: Chesnay Schepler
>            Assignee: Chesnay Schepler
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.4.3, 1.5.2, 1.6.0
>
>
> {code}
> try {
> 	JarFile jar = new JarFile(f);
> 	Manifest manifest = jar.getManifest();
> 	String assemblerClass = null;
> 	if (manifest != null) {
> 		assemblerClass = manifest.getMainAttributes().getValue(PackagedProgram.MANIFEST_ATTRIBUTE_ASSEMBLER_CLASS);
> 		if (assemblerClass == null) {
> 			assemblerClass = manifest.getMainAttributes().getValue(PackagedProgram.MANIFEST_ATTRIBUTE_MAIN_CLASS);
> 		}
> 	}
> 	if (assemblerClass != null) {
> 		classes = assemblerClass.split(",");
> 	}
> }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message