Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A2DEA17822 for ; Wed, 11 Mar 2015 03:16:41 +0000 (UTC) Received: (qmail 67429 invoked by uid 500); 11 Mar 2015 03:16:38 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 67371 invoked by uid 500); 11 Mar 2015 03:16:38 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 67355 invoked by uid 99); 11 Mar 2015 03:16:38 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Mar 2015 03:16:38 +0000 Date: Wed, 11 Mar 2015 03:16:38 +0000 (UTC) From: "Hadoop QA (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-7914) TestJournalNode#testFailToStartWithBadConfig failed consistently when the default dfs.journalnode.http-address port 8480 is in use by OS. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-7914?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14356160#comment-14356160 ] Hadoop QA commented on HDFS-7914: --------------------------------- {color:green}+1 overall{color}. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12703774/HDFS-7914.00.patch against trunk revision a5cf985. {color:green}+1 @author{color}. The patch does not contain any @author tags. {color:green}+1 tests included{color}. The patch appears to include 1 new or modified test files. {color:green}+1 javac{color}. The applied patch does not increase the total number of javac compiler warnings. {color:green}+1 javadoc{color}. There were no new javadoc warning messages. {color:green}+1 eclipse:eclipse{color}. The patch built with eclipse:eclipse. {color:green}+1 findbugs{color}. The patch does not introduce any new Findbugs (version 2.0.3) warnings. {color:green}+1 release audit{color}. The applied patch does not increase the total number of release audit warnings. {color:green}+1 core tests{color}. The patch passed unit tests in hadoop-hdfs-project/hadoop-hdfs. Test results: https://builds.apache.org/job/PreCommit-HDFS-Build/9827//testReport/ Console output: https://builds.apache.org/job/PreCommit-HDFS-Build/9827//console This message is automatically generated. > TestJournalNode#testFailToStartWithBadConfig failed consistently when the default dfs.journalnode.http-address port 8480 is in use by OS. > ----------------------------------------------------------------------------------------------------------------------------------------- > > Key: HDFS-7914 > URL: https://issues.apache.org/jira/browse/HDFS-7914 > Project: Hadoop HDFS > Issue Type: Test > Affects Versions: 2.6.0 > Environment: Mac > Reporter: Xiaoyu Yao > Assignee: Xiaoyu Yao > Attachments: HDFS-7914.00.patch > > > The default journal node http port address 8480 used by the test is always conflicting with iTunes service on Mac OS as shown below. The fix for this test to let OS choose a free port for the test. I will post a patch shortly. > Tests run: 6, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 3.392 sec <<< FAILURE! - in org.apache.hadoop.hdfs.qjournal.server.TestJournalNode > testFailToStartWithBadConfig(org.apache.hadoop.hdfs.qjournal.server.TestJournalNode) Time elapsed: 0.176 sec <<< FAILURE! > java.lang.AssertionError: Expected to find 'Cannot create directory' but got unexpected exception:java.net.BindException: Port in use: 0.0.0.0:8480 > at org.apache.hadoop.http.HttpServer2.openListeners(HttpServer2.java:812) > at org.apache.hadoop.http.HttpServer2.start(HttpServer2.java:749) > at org.apache.hadoop.hdfs.qjournal.server.JournalNodeHttpServer.start(JournalNodeHttpServer.java:69) > at org.apache.hadoop.hdfs.qjournal.server.JournalNode.start(JournalNode.java:150) > at org.apache.hadoop.hdfs.qjournal.server.TestJournalNode.assertJNFailsToStart(TestJournalNode.java:297) > at org.apache.hadoop.hdfs.qjournal.server.TestJournalNode.testFailToStartWithBadConfig(TestJournalNode.java:289) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) > at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) > at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) > at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) > at org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:74) > Caused by: java.net.BindException: Address already in use > at sun.nio.ch.Net.bind0(Native Method) > at sun.nio.ch.Net.bind(Net.java:444) > at sun.nio.ch.Net.bind(Net.java:436) > at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214) > at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) > at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:216) > at org.apache.hadoop.http.HttpServer2.openListeners(HttpServer2.java:807) > ... 14 more > at org.junit.Assert.fail(Assert.java:88) > at org.junit.Assert.assertTrue(Assert.java:41) > at org.apache.hadoop.test.GenericTestUtils.assertExceptionContains(GenericTestUtils.java:146) > at org.apache.hadoop.hdfs.qjournal.server.TestJournalNode.assertJNFailsToStart(TestJournalNode.java:299) > at org.apache.hadoop.hdfs.qjournal.server.TestJournalNode.testFailToStartWithBadConfig(TestJournalNode.java:289) -- This message was sent by Atlassian JIRA (v6.3.4#6332)