[ 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.002.patch Thanks [~xyao] for the review! The issue here was that if exception happened in the {{=DFSUtil.getNN...()}} calls, there will only be a log warning, then the following putAll call will complain non-initialized variable, in which case the HashMap still need to be created. In v002 patch I changed to only create when the exception happens, which is hopefully cleaner. > 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 > Assignee: Chen Liang > Attachments: HDFS-11005-HDFS-7240.001.patch, > HDFS-11005-HDFS-7240.002.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: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org