hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arpit Agarwal (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-11342) Fix FileInputStream leak in loadLastPartialChunkChecksum
Date Sat, 14 Jan 2017 00:45:26 GMT
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: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org


Mime
View raw message