You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2016/10/07 03:17:20 UTC

[jira] [Updated] (KYLIN-2051) Potentially ineffective call to IOUtils.closeQuietly()

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

Ted Yu updated KYLIN-2051:
--------------------------
    Description: 
Here is an example from ZipFileUtils.java :
{code}
                IOUtils.copy(zipInputStream, outputStream);
                IOUtils.closeQuietly(outputStream);
{code}
IOUtils.copy() may throw IOE, leaving IOUtils.closeQuietly() ineffective.
This problem may be in other classes too.

  was:
Here is an example from ZipFileUtils.java :
{code}
                IOUtils.copy(zipInputStream, outputStream);
                IOUtils.closeQuietly(outputStream);
{code}
IOUtils.copy() may throw IOE, leaving IOUtils.closeQuietly() ineffective.

This problem may be in other classes too.


> Potentially ineffective call to IOUtils.closeQuietly()
> ------------------------------------------------------
>
>                 Key: KYLIN-2051
>                 URL: https://issues.apache.org/jira/browse/KYLIN-2051
>             Project: Kylin
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Priority: Minor
>
> Here is an example from ZipFileUtils.java :
> {code}
>                 IOUtils.copy(zipInputStream, outputStream);
>                 IOUtils.closeQuietly(outputStream);
> {code}
> IOUtils.copy() may throw IOE, leaving IOUtils.closeQuietly() ineffective.
> This problem may be in other classes too.



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