hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-14029) Sleep in TestLazyPersistFiles should be put into a loop
Date Fri, 26 Oct 2018 00:00:00 GMT

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

Hudson commented on HDFS-14029:
-------------------------------

SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #15324 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/15324/])
HDFS-14029. Sleep in TestLazyPersistFiles should be put into a loop. (arp: rev 9b899f1ebd5126a756fceb43459164165488b203)
* (edit) hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/TestLazyPersistFiles.java


> Sleep in TestLazyPersistFiles should be put into a loop
> -------------------------------------------------------
>
>                 Key: HDFS-14029
>                 URL: https://issues.apache.org/jira/browse/HDFS-14029
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: hdfs
>            Reporter: Adam Antal
>            Assignee: Adam Antal
>            Priority: Trivial
>              Labels: newbie
>             Fix For: 3.0.4, 3.1.2, 3.3.0, 3.2.1
>
>         Attachments: HDFS-14029.001.patch
>
>
> TestLazyPersistFiles#testFileShouldNotDiscardedIfNNRestarted test should be improved.
> The test sleeps for 6000 at once, it could at least sleep in a loop checking for the
corrupt block to be reported.
> {code:java}
>     cluster.shutdownDataNodes();
>     cluster.restartNameNodes();
>     // wait for the redundancy monitor to mark the file as corrupt.
>     Thread.sleep(2 * DFS_NAMENODE_REDUNDANCY_INTERVAL_SECONDS_DEFAULT * 1000);
>     Long corruptBlkCount = (long) Iterators.size(cluster.getNameNode()
>         .getNamesystem().getBlockManager().getCorruptReplicaBlockIterator());
> {code}
> Thanks [~knanasi] for the suggestion.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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