You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Arpit Agarwal (JIRA)" <ji...@apache.org> on 2016/12/15 21:05:58 UTC
[jira] [Created] (HDFS-11253) FileInputStream leak on failure path
in BlockSender
Arpit Agarwal created HDFS-11253:
------------------------------------
Summary: FileInputStream leak on failure path in BlockSender
Key: HDFS-11253
URL: https://issues.apache.org/jira/browse/HDFS-11253
Project: Hadoop HDFS
Issue Type: Bug
Components: datanode
Reporter: Arpit Agarwal
Assignee: Arpit Agarwal
The BlockSender constructor should close the blockIn and checksumIn streams here:
{code}
405: blockIn = datanode.data.getBlockInputStream(block, offset); // seek to offset
406: ris = new ReplicaInputStreams(
407: blockIn, checksumIn, volumeRef, fileIoProvider);
408: } catch (IOException ioe) {
409: IOUtils.closeStream(this);
410: throw ioe;
411: }
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org