hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Devaraj K (JIRA)" <j...@apache.org>
Subject [jira] Created: (MAPREDUCE-2387) Potential Resource leak in IOUtils.java
Date Wed, 16 Mar 2011 05:05:29 GMT
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


    try {
      copyBytes(in, out, buffSize);
    } finally {
      if(close) {

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

View raw message