hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tsz Wo Nicholas Sze (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-7696) FsDatasetImpl.getTmpInputStreams(..) may leak file descriptors
Date Thu, 29 Jan 2015 00:25:34 GMT

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

Tsz Wo Nicholas Sze updated HDFS-7696:
--------------------------------------
    Attachment: h7696_20150128.patch

h7696_20150128.patch: close files in case of exceptions.

> FsDatasetImpl.getTmpInputStreams(..) may leak file descriptors
> --------------------------------------------------------------
>
>                 Key: HDFS-7696
>                 URL: https://issues.apache.org/jira/browse/HDFS-7696
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: datanode
>            Reporter: Tsz Wo Nicholas Sze
>            Assignee: Tsz Wo Nicholas Sze
>         Attachments: h7696_20150128.patch
>
>
> getTmpInputStreams(..) opens a block file and a meta file, and then return them as ReplicaInputStreams.
 The caller responses to closes those streams.  In case of errors, an exception is thrown
without closing the files.



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

Mime
View raw message