flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FLINK-2595) Unclosed JarFile may leak resource in ClassLoaderUtilsTest
Date Wed, 09 Sep 2015 15:47:45 GMT

     [ https://issues.apache.org/jira/browse/FLINK-2595?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ted Yu updated FLINK-2595:
--------------------------
    Description: 
Here is related code:
{code}
                        try {
                                new JarFile(validJar.getAbsolutePath());
                        }
                        catch (Exception e) {
                                e.printStackTrace();
                                fail("test setup broken: cannot create a valid jar file");
                        }
{code}

When exception happens, the JarFile instance is not closed.

  was:
Here is related code:
{code}
                        try {
                                new JarFile(validJar.getAbsolutePath());
                        }
                        catch (Exception e) {
                                e.printStackTrace();
                                fail("test setup broken: cannot create a valid jar file");
                        }
{code}
When exception happens, the JarFile instance is not closed.


> Unclosed JarFile may leak resource in ClassLoaderUtilsTest
> ----------------------------------------------------------
>
>                 Key: FLINK-2595
>                 URL: https://issues.apache.org/jira/browse/FLINK-2595
>             Project: Flink
>          Issue Type: Test
>            Reporter: Ted Yu
>            Priority: Minor
>
> Here is related code:
> {code}
>                         try {
>                                 new JarFile(validJar.getAbsolutePath());
>                         }
>                         catch (Exception e) {
>                                 e.printStackTrace();
>                                 fail("test setup broken: cannot create a valid jar file");
>                         }
> {code}
> When exception happens, the JarFile instance is not closed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message