[ https://issues.apache.org/jira/browse/HDFS-9493?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tony Wu updated HDFS-9493: -------------------------- Attachment: HDFS-9493.002.patch In v2 patch: * {{Use BlockManagerTestUtil#noticeDeadDatanode()}} to reduce the test run time. After this call the NN will declare the DN dead right away, rather than waiting for HB timeout. * Create a helper function {{stopDnAndWaitForNnToRemoveIt()}} for test cases to stop a DN and wait for it to be removed by DN. * Create a new {{MiniDFSCluster}} for every test case. Verified the {{testMetaSave}} runs fine on OSX & Linux (CentOS). Verified the run time reduced from 30+ seconds to 17 seconds. > Test o.a.h.hdfs.server.namenode.TestMetaSave fails in trunk > ----------------------------------------------------------- > > Key: HDFS-9493 > URL: https://issues.apache.org/jira/browse/HDFS-9493 > Project: Hadoop HDFS > Issue Type: Bug > Components: test > Reporter: Mingliang Liu > Assignee: Tony Wu > Attachments: HDFS-9493.001.patch, HDFS-9493.002.patch > > > Tested in both Gentoo Linux and Mac. > {quote} > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > Running org.apache.hadoop.hdfs.server.namenode.TestMetaSave > Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 34.159 sec > <<< FAILURE! - in org.apache.hadoop.hdfs.server.namenode.TestMetaSave > testMetasaveAfterDelete(org.apache.hadoop.hdfs.server.namenode.TestMetaSave) > Time elapsed: 15.318 sec <<< FAILURE! > java.lang.AssertionError: null > at org.junit.Assert.fail(Assert.java:86) > at org.junit.Assert.assertTrue(Assert.java:41) > at org.junit.Assert.assertTrue(Assert.java:52) > at > org.apache.hadoop.hdfs.server.namenode.TestMetaSave.testMetasaveAfterDelete(TestMetaSave.java:154) > {quote} -- This message was sent by Atlassian JIRA (v6.3.4#6332)