Arpit Agarwal created HDFS-11342:
------------------------------------
Summary: 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
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]