hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-7194) Potential Resource leak in IOUtils.java
Date Tue, 29 Mar 2011 11:14:06 GMT

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

Hudson commented on HADOOP-7194:
--------------------------------

Integrated in Hadoop-Common-trunk #645 (See [https://hudson.apache.org/hudson/job/Hadoop-Common-trunk/645/])
    HADOOP-7194. Fix resource leak in IOUtils.copyBytes(..).  Contributed by Devaraj K


> Potential Resource leak in IOUtils.java
> ---------------------------------------
>
>                 Key: HADOOP-7194
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7194
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: io
>            Reporter: Devaraj K
>            Assignee: Devaraj K
>             Fix For: 0.21.1, 0.22.0, 0.23.0
>
>         Attachments: HADOOP-7194.patch
>
>
> {code:title=IOUtils.java|borderStyle=solid}
> try {
>       copyBytes(in, out, buffSize);
>     } finally {
>       if(close) {
>         out.close();
>         in.close();
>       }
>     }
> {code} 
> In the above code if any exception throws from the out.close() statement, in.close()
statement will not execute and the input stream will not be closed.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message