hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chen Liang (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (HDFS-11342) Fix FileInputStream leak in loadLastPartialChunkChecksum
Date Sat, 14 Jan 2017 00:46:26 GMT

     [ https://issues.apache.org/jira/browse/HDFS-11342?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Chen Liang reassigned HDFS-11342:
---------------------------------

    Assignee: Chen Liang

> Fix FileInputStream leak in loadLastPartialChunkChecksum
> --------------------------------------------------------
>
>                 Key: HDFS-11342
>                 URL: https://issues.apache.org/jira/browse/HDFS-11342
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: datanode
>    Affects Versions: 3.0.0-alpha2
>            Reporter: Arpit Agarwal
>            Assignee: Chen Liang
>
> FsVolumeImpl#loadLastPartialChunkChecksum leaks a FileInputStream here:
> {code}
>   @Override
>   public byte[] loadLastPartialChunkChecksum(
>       File blockFile, File metaFile) throws IOException {
>     // readHeader closes the temporary FileInputStream.
>     DataChecksum dcs = BlockMetadataHeader
>         .readHeader(fileIoProvider.getFileInputStream(this, metaFile))
>         .getChecksum();
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message