You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Brahma Reddy Battula (JIRA)" <ji...@apache.org> on 2014/12/11 19:02:13 UTC
[jira] [Created] (HADOOP-11392) FileUtil.java leaks file descriptor
when copybytes success.
Brahma Reddy Battula created HADOOP-11392:
---------------------------------------------
Summary: FileUtil.java leaks file descriptor when copybytes success.
Key: HADOOP-11392
URL: https://issues.apache.org/jira/browse/HADOOP-11392
Project: Hadoop Common
Issue Type: Bug
Reporter: Brahma Reddy Battula
Please check following code for same..
{code}
try {
in = srcFS.open(src);
out = dstFS.create(dst, overwrite);
IOUtils.copyBytes(in, out, conf, true);
} catch (IOException e) {
IOUtils.closeStream(out);
IOUtils.closeStream(in);
throw e;
}
}
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)