hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hou Song (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-2444) A bug in unit test: TestDFSShell.testText()
Date Mon, 31 Oct 2011 07:36:32 GMT

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

Hou Song updated HDFS-2444:
---------------------------

    Attachment: HDFS-2444.patch

A simple fix: just remove, and test also succeeds. 
                
> A bug in unit test: TestDFSShell.testText()
> -------------------------------------------
>
>                 Key: HDFS-2444
>                 URL: https://issues.apache.org/jira/browse/HDFS-2444
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 0.21.0
>            Reporter: Hou Song
>         Attachments: HDFS-2444.patch
>
>
> testText() writes the same random String into a ByteArray in memory and a GZIPOutputStream
in DFS. After closing GZIPOutputStream, it reads it back using shell command -text, and compares
it against the ByteArray. However, before comparing, the shell output and the ByteArray are
both reset, making the comparison useless. 
> What's more, after closing the GZIPOutputStream, DFS is unable to find the file, and
the -text command failed to read, giving no output. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message