hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Suresh Srinivas (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-1252) TestDFSConcurrentFileOperations broken in 0.20-appendj
Date Sat, 10 Sep 2011 00:48:08 GMT

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

Suresh Srinivas commented on HDFS-1252:
---------------------------------------

I have attached 0.20-security version of the patch.

> TestDFSConcurrentFileOperations broken in 0.20-appendj
> ------------------------------------------------------
>
>                 Key: HDFS-1252
>                 URL: https://issues.apache.org/jira/browse/HDFS-1252
>             Project: Hadoop HDFS
>          Issue Type: Test
>          Components: test
>    Affects Versions: 0.20-append
>            Reporter: Todd Lipcon
>            Assignee: Todd Lipcon
>             Fix For: 0.20-append
>
>         Attachments: HDFS-1252.20s.patch, hdfs-1252.txt
>
>
> This test currently has several flaws:
>  - It calls DN.updateBlock with a BlockInfo instance, which then causes java.lang.RuntimeException:
java.lang.NoSuchMethodException: org.apache.hadoop.hdfs.server.namenode.BlocksMap$BlockInfo.<init>()
in the logs when the DN tries to send blockReceived for the block
>  - It assumes that getBlockLocations returns an up-to-date length block after a sync,
which is false. It happens to work because it calls getBlockLocations directly on the NN,
and thus gets a direct reference to the block in the blockmap, which later gets updated
> This patch fixes this test to use the AppendTestUtil functions to intiiate recovery,
and generally pass more reliably.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message