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

Chen Liang updated HDFS-11005:
------------------------------
    Attachment: HDFS-11005-HDFS-7240.001.patch

The problem is that {{doRefreshNamenode}} is using {{Sets.newLinkedHashSet}} to 
maintain order of keys in a hash map. However in {{refreshNameNodes}}, the use 
of {{putAll}} seems to be changing the order of keys, as a result, it altered 
the key order from {{ns1,ns2}} to {{ns2,ns1}}.

The v001 patch avoids using {{putAll}} call but directly set the map.

> Ozone: TestBlockPoolManager fails in ozone branch.
> --------------------------------------------------
>
>                 Key: HDFS-11005
>                 URL: https://issues.apache.org/jira/browse/HDFS-11005
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: ozone
>    Affects Versions: HDFS-7240
>            Reporter: Anu Engineer
>         Attachments: HDFS-11005-HDFS-7240.001.patch
>
>
> TestBlockPoolManager.testFederationRefresh  fails in the ozone branch with 
> the following error message.
> {noformat}
> Running org.apache.hadoop.hdfs.server.datanode.TestBlockPoolManager
> Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.231 sec <<< 
> FAILURE! - in org.apache.hadoop.hdfs.server.datanode.TestBlockPoolManager
> testFederationRefresh(org.apache.hadoop.hdfs.server.datanode.TestBlockPoolManager)
>   Time elapsed: 0.043 sec  <<< FAILURE!
> org.junit.ComparisonFailure: expected:<stop #[1
> refresh #2]
> > but was:<stop #[2
> refresh #1]
> >
>       at org.junit.Assert.assertEquals(Assert.java:115)
>       at org.junit.Assert.assertEquals(Assert.java:144)
>       at 
> org.apache.hadoop.hdfs.server.datanode.TestBlockPoolManager.testFederationRefresh(TestBlockPoolManager.java:123)
> Results :
> Failed tests:
>   TestBlockPoolManager.testFederationRefresh:123 expected:<stop #[1
> refresh #2]
> > but was:<stop #[2
> refresh #1]
> >
> {noformat}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to