hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vinay (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-4855) DFSOutputStream reference should be cleared from DFSClient#filesBeingWritten if the file closure fails.
Date Mon, 27 May 2013 14:59:20 GMT
Vinay created HDFS-4855:
---------------------------

             Summary: DFSOutputStream reference should be cleared from DFSClient#filesBeingWritten
if the file closure fails.
                 Key: HDFS-4855
                 URL: https://issues.apache.org/jira/browse/HDFS-4855
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: hdfs-client
    Affects Versions: 2.0.4-alpha
            Reporter: Vinay
            Assignee: Vinay
             Fix For: 2.0.4.1-alpha


If the file closure fails due to some exception, then {{DFSOutputStream}} reference should
be removed from the {{DFSClient#filesBeingWritten}}.

Which is useless to keep and also memory consuming.

If the same client is being used for long time,, then there is a chance of client getting
OOM due to this.

fix would be simple. 

Just cover complete {{DFSOutputStream#close()}} under try-finally and move {{dfsClient.endFileLease(src);}}
to finally block.

Any thoughts..?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message