hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yiqun Lin (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-10990) Improve the logic for TestPendingInvalidateBlock#testPendingDeletion
Date Mon, 10 Oct 2016 09:32:21 GMT

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

Yiqun Lin updated HDFS-10990:
-----------------------------
    Attachment: HDFS-10990.002.patch

Make a improvement base on v001 patch.
{quote}
    Whitebox.setInternalState(cluster.getNamesystem().getBlockManager(),
        "invalidateBlocks", mockIb);
    dfs.delete(foo, true);

    Assert.assertEquals(0, cluster.getNamesystem().getBlocksTotal());
    Assert.assertEquals(REPLICATION, cluster.getNamesystem()
{quote}
Here we would be better to wait the {{pendingDeletionBlocks}} reach to {{REPLICATION}} as
well. Attach the v002 patch for this,

> Improve the logic for TestPendingInvalidateBlock#testPendingDeletion
> --------------------------------------------------------------------
>
>                 Key: HDFS-10990
>                 URL: https://issues.apache.org/jira/browse/HDFS-10990
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Yiqun Lin
>            Assignee: Yiqun Lin
>            Priority: Minor
>         Attachments: HDFS-10990.001.patch, HDFS-10990.002.patch
>
>
> After HDFS-10426, the test {{TestPendingInvalidateBlock#testPendingDeletion}} still fails
sometimes. As [~iwasakims] commented in HDFS-10426(https://issues.apache.org/jira/browse/HDFS-10426?focusedCommentId=15539826&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15539826),
we should add a line {{DFSTestUtil.waitForReplication}} to wait for the IBR and not do the
assert opertion first.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message