HDFS-11253. FileInputStream leak on failure path in BlockSender. Contributed by Arpit Agarwal
This commit is contained in:
parent
ac0d402c6a
commit
6fce191549
|
@ -407,6 +407,8 @@ class BlockSender implements java.io.Closeable {
|
|||
blockIn, checksumIn, volumeRef, fileIoProvider);
|
||||
} catch (IOException ioe) {
|
||||
IOUtils.closeStream(this);
|
||||
org.apache.commons.io.IOUtils.closeQuietly(blockIn);
|
||||
org.apache.commons.io.IOUtils.closeQuietly(checksumIn);
|
||||
throw ioe;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue