hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-11342) Fix FileInputStream leak in loadLastPartialChunkChecksum
Date Mon, 16 Jan 2017 22:13:26 GMT

    [ https://issues.apache.org/jira/browse/HDFS-11342?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15824657#comment-15824657
] 

Hudson commented on HDFS-11342:
-------------------------------

SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #11119 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/11119/])
HDFS-11342. Fix FileInputStream leak in loadLastPartialChunkChecksum. (arp: rev a853b4e1b5742faadf7b667b0cebbc0dac001395)
* (edit) hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/FsVolumeImpl.java


> 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
>             Fix For: 3.0.0-alpha2
>
>         Attachments: HDFS-11342.001.patch
>
>
> 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