hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-7914) TestJournalNode#testFailToStartWithBadConfig fails when the default dfs.journalnode.http-address port 8480 is in use
Date Thu, 19 Mar 2015 11:35:42 GMT

    [ https://issues.apache.org/jira/browse/HDFS-7914?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14368903#comment-14368903
] 

Hudson commented on HDFS-7914:
------------------------------

FAILURE: Integrated in Hadoop-Yarn-trunk-Java8 #137 (See [https://builds.apache.org/job/Hadoop-Yarn-trunk-Java8/137/])
HDFS-7914. TestJournalNode#testFailToStartWithBadConfig fails when the default dfs.journalnode.http-address
port 8480 is in use. (Contributed by Xiaoyu Yao) (arp: rev c239b6d3763e255b17a87924bb0807ce7efab18a)
* hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
* hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/qjournal/server/TestJournalNode.java


> TestJournalNode#testFailToStartWithBadConfig fails when the default dfs.journalnode.http-address
port 8480 is in use
> --------------------------------------------------------------------------------------------------------------------
>
>                 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
>             Fix For: 2.7.0
>
>         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)

Mime
View raw message