Description
IOUtils.java
try { copyBytes(in, out, buffSize); } finally { if(close) { out.close(); in.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.
Attachments
Attachments
Issue Links
- is duplicated by
-
HDFS-4588 DFSTestUtil.appendFile() should close the output stream on completion.
- Resolved
- relates to
-
HADOOP-7437 IOUtils.copybytes will suppress the stream closure exceptions.
- Closed