Yanbo Liang created HDFS-3748: --------------------------------- Summary: TestDFSUtil#testHANameNodesWithFederation failed because of misuse toString to generate hostname:port Key: HDFS-3748 URL: https://issues.apache.org/jira/browse/HDFS-3748 Project: Hadoop HDFS Issue Type: Bug Components: federation, ha, test Affects Versions: 2.0.0-alpha Reporter: Yanbo Liang Priority: Minor
In the test case TestDFSUtil#testHANameNodesWithFederation, it misused InetSocketAddress.toString() to generate hostname:port format data. It cause the following assert failure when run this test case. assertEquals(NS1_NN1_HOST, map.get("ns1").get("ns1-nn1").toString()); assertEquals(NS1_NN2_HOST, map.get("ns1").get("ns1-nn2").toString()); assertEquals(NS2_NN1_HOST, map.get("ns2").get("ns2-nn1").toString()); assertEquals(NS2_NN2_HOST, map.get("ns2").get("ns2-nn2").toString()); -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira