hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colin Patrick McCabe (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HDFS-4855) DFSOutputStream reference should be cleared from DFSClient#filesBeingWritten if the file closure fails.
Date Tue, 28 May 2013 18:22:23 GMT

     [ 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

Mime
View raw message