[ https://issues.apache.org/jira/browse/HDFS-2444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14308349#comment-14308349 ]
Akira AJISAKA commented on HDFS-2444: ------------------------------------- Thanks for the report and the patch. Looks like this issue is fixed by HADOOP-8449. Closing this. > 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, 0.23.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 was sent by Atlassian JIRA (v6.3.4#6332)