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

Colin Patrick McCabe resolved HDFS-4855.
----------------------------------------

    Resolution: Duplicate
    
> 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

Reply via email to