hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron T. Myers (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-3842) HDFS-3672 broke TestCombineFileInputFormat.testMissingBlocks() test
Date Wed, 22 Aug 2012 21:28:42 GMT

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

Aaron T. Myers updated HDFS-3842:
---------------------------------

    Attachment: HDFS-3842.patch

Trivial patch attached. The trouble is that the test is trying trying to substitute in an
object of type BlockLocation into an array whose declared type is BlockLocation, but the actual
type of the objects in the array is HdfsBlockLocation. Though Java does allow arrays to contain
subclasses of the declared type of the array, it doesn't allow arrays with mixed actual types.
                
> HDFS-3672 broke TestCombineFileInputFormat.testMissingBlocks() test
> -------------------------------------------------------------------
>
>                 Key: HDFS-3842
>                 URL: https://issues.apache.org/jira/browse/HDFS-3842
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs client
>    Affects Versions: 2.2.0-alpha
>            Reporter: Alejandro Abdelnur
>            Assignee: Aaron T. Myers
>            Priority: Critical
>         Attachments: HDFS-3842.patch
>
>
> Before HDFS-3672, locally applying MAPREDUCE-4470 made TestCombineFileInputFormat to
pass all it tests.
> After HDFS-3672, TestCombineFileInputFormat.testMissingBlocks() fails:
> {code}
> $ mvn clean test -Dtest=TestCombineFileInputFormat
> Running org.apache.hadoop.mapred.TestCombineFileInputFormat
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.698 sec
> Running org.apache.hadoop.mapreduce.lib.input.TestCombineFileInputFormat
> Tests run: 6, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 7.526 sec <<<
FAILURE!
> Results :
> Tests in error: 
>   testMissingBlocks(org.apache.hadoop.mapreduce.lib.input.TestCombineFileInputFormat):
org.apache.hadoop.fs.BlockLocation
> Tests run: 7, Failures: 0, Errors: 1, Skipped: 0
> {code}

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