You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-dev@hadoop.apache.org by "Devaraj K (JIRA)" <ji...@apache.org> on 2011/03/16 06:05:29 UTC
[jira] Created: (MAPREDUCE-2387) Potential Resource leak in
IOUtils.java
Potential Resource leak in IOUtils.java
---------------------------------------
Key: MAPREDUCE-2387
URL: https://issues.apache.org/jira/browse/MAPREDUCE-2387
Project: Hadoop Map/Reduce
Issue Type: Bug
Affects Versions: 0.23.0
Reporter: Devaraj K
{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
[jira] Resolved: (MAPREDUCE-2387) Potential Resource leak in
IOUtils.java
Posted by "Devaraj K (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-2387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Devaraj K resolved MAPREDUCE-2387.
----------------------------------
Resolution: Duplicate
It is related to Hadoop Common. Issue is raised with id HADOOP-7194.
> Potential Resource leak in IOUtils.java
> ---------------------------------------
>
> Key: MAPREDUCE-2387
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-2387
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Affects Versions: 0.23.0
> Reporter: Devaraj K
>
> {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