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 "Plamen Jeliazkov (JIRA)" <ji...@apache.org> on 2013/04/12 00:45:16 UTC

[jira] [Commented] (HDFS-4588) DFSTestUtil.appendFile() should close the output stream on completion.

    [ https://issues.apache.org/jira/browse/HDFS-4588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13629504#comment-13629504 ] 

Plamen Jeliazkov commented on HDFS-4588:
----------------------------------------

This was fixed by HADOOP-7194 when the close boolean argument was used to judge whether to close the output and input or not.
                
> DFSTestUtil.appendFile() should close the output stream on completion.
> ----------------------------------------------------------------------
>
>                 Key: HDFS-4588
>                 URL: https://issues.apache.org/jira/browse/HDFS-4588
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 2.0.3-alpha
>            Reporter: Konstantin Shvachko
>            Assignee: Plamen Jeliazkov
>              Labels: newbie
>
> {{DFSTestUtil.appendFile()}} opens an output stream to write to a file but never closes it.
> This was fixed for {{DFSTestUtil.createFile()}} on trunk by HDFS-3995. The same should be done for {{appendFile()}}.
> On branch 2 both {{createFile()}} and {{appendFile()}} should be changed to close the respective output streams.

--
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