hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tsz Wo (Nicholas), SZE (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HDFS-682) TestBlockUnderConstruction fails
Date Mon, 12 Oct 2009 20:28:31 GMT

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

Tsz Wo (Nicholas), SZE commented on HDFS-682:
---------------------------------------------

The main problem is that TestBlockUnderConstruction expects the last block of a being-written
file to be not complete. This dependents on whether the NameNode has received a block receipt
from one or more datanodes. If a block receipt comes first, the block becomes complete.  Otherwise,
the NameNode has not yet received any block receipt and then the block remains not complete.

The second problem is that the error message in the following is incorrect. This is the reason
that h682_20091009.patch did not work.
{code}
//TestBlockUnderConstruction.verifyFileBlocks(..)
    assertEquals("Block " + curBlock +
        " isComplete = " + curBlock.isComplete() +
        " expected to be " + isFileOpen,
        isFileOpen, !curBlock.isComplete());
{code}

> TestBlockUnderConstruction fails
> --------------------------------
>
>                 Key: HDFS-682
>                 URL: https://issues.apache.org/jira/browse/HDFS-682
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: name-node
>            Reporter: Tsz Wo (Nicholas), SZE
>         Attachments: h682_20091009.patch
>
>
> {noformat}
> Block blk_8364044872193449415_1001 isComplete = true expected to be true expected:<true>
but was:<false>
> {noformat}
> See [build #57|http://hudson.zones.apache.org/hudson/job/Hdfs-Patch-h5.grid.sp2.yahoo.net/57/testReport/org.apache.hadoop.hdfs.server.namenode/TestBlockUnderConstruction/testBlockCreation/]
for more details.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message