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

Daryn Sharp commented on HDFS-2855:
-----------------------------------

This is actually a bug in {{FSInputChecker}}.  The return value of {{skip(n)}} 
is supposed to be the number of bytes skipped.  {{FSInputChecker#skip}} is 
returning whatever value the user supplied.  I don't think the test needs to be 
updated, but {{FSInputChecker}} needs to be fixed.

BTW, I'm not sure why this test is in hdfs.  It appears to only include files 
from hadoop-common-project.  Should it be moved?
                
> TestFSInputChecker is failing in trunk.
> ---------------------------------------
>
>                 Key: HDFS-2855
>                 URL: https://issues.apache.org/jira/browse/HDFS-2855
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 0.24.0
>            Reporter: Uma Maheswara Rao G
>            Assignee: Uma Maheswara Rao G
>
> Trunk build number 939 failed with TestFSInputChecker.
> https://builds.apache.org/job/Hadoop-Hdfs-trunk/939/
> junit.framework.AssertionFailedError: expected:<10> but was:<0>
>       at junit.framework.Assert.fail(Assert.java:47)
>       at junit.framework.Assert.failNotEquals(Assert.java:283)
>       at junit.framework.Assert.assertEquals(Assert.java:64)
>       at junit.framework.Assert.assertEquals(Assert.java:130)
>       at junit.framework.Assert.assertEquals(Assert.java:136)
>       at 
> org.apache.hadoop.hdfs.TestFSInputChecker.checkSkip(TestFSInputChecker.java:194)
>       at 
> org.apache.hadoop.hdfs.TestFSInputChecker.testChecker(TestFSInputChecker.java:224)

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

        

Reply via email to