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

Hudson commented on HDFS-5244:
------------------------------

SUCCESS: Integrated in Hadoop-trunk-Commit #5321 (See 
[https://builds.apache.org/job/Hadoop-trunk-Commit/5321/])
HDFS-5244. TestNNStorageRetentionManager#testPurgeMultipleDirs fails. 
Contributed bye Jinghui Wang. (suresh: 
http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1577254)
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
* 
/hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestNNStorageRetentionManager.java


> TestNNStorageRetentionManager#testPurgeMultipleDirs fails
> ---------------------------------------------------------
>
>                 Key: HDFS-5244
>                 URL: https://issues.apache.org/jira/browse/HDFS-5244
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 2.1.0-beta
>         Environment: Red Hat Enterprise 6 with Sun Java 1.7 and IBM java 1.6
>            Reporter: Jinghui Wang
>            Assignee: Jinghui Wang
>             Fix For: 3.0.0, 2.1.0-beta, 2.4.0
>
>         Attachments: HDFS-5244.patch
>
>
> The test o.a.h.hdfs.server.namenode.TestNNStorageRetentionManager uses a 
> HashMap(dirRoots) to store the root storages to be mocked for the purging 
> test, which does not have any predictable order. The directories needs be 
> purged are stored in a LinkedHashSet, which has a predictable order. So, when 
> the directories get mocked for the test, they could be already out of
> the order that they were added. Thus, the order that the directories were
> actually purged and the order of them being added to the LinkedHashList could
> be different and cause the test to fail.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to