[
https://issues.apache.org/jira/browse/HDFS-11342?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Arpit Agarwal updated HDFS-11342:
---------------------------------
Resolution: Fixed
Hadoop Flags: Reviewed
Fix Version/s: 3.0.0-alpha2
Target Version/s: (was: 3.0.0-alpha2)
Status: Resolved (was: Patch Available)
Committed to trunk. Thanks for the contribution [~vagarychen]!
> 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: [email protected]
For additional commands, e-mail: [email protected]