You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Konstantin Boudnik (JIRA)" <ji...@apache.org> on 2013/06/01 01:10:20 UTC
[jira] [Updated] (HDFS-4855) DFSOutputStream reference should be
cleared from DFSClient#filesBeingWritten if the file closure fails.
[ https://issues.apache.org/jira/browse/HDFS-4855?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Konstantin Boudnik updated HDFS-4855:
-------------------------------------
Fix Version/s: (was: 2.0.5-alpha)
> 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
>
> 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