You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Arpit Agarwal (JIRA)" <ji...@apache.org> on 2015/06/01 22:15:17 UTC
[jira] [Commented] (HDFS-8508) TestJournalNode fails occasionally
with bind exception
[ https://issues.apache.org/jira/browse/HDFS-8508?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14567921#comment-14567921 ]
Arpit Agarwal commented on HDFS-8508:
-------------------------------------
Exception details:
{code}
Tests run: 6, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 3.554 sec <<< FAILURE! - in org.apache.hadoop.hdfs.qjournal.server.TestJournalNode
testFailToStartWithBadConfig(org.apache.hadoop.hdfs.qjournal.server.TestJournalNode) Time elapsed: 0.074 sec <<< FAILURE!
java.lang.AssertionError: Expected to find 'Can not 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:859)
at org.apache.hadoop.http.HttpServer2.start(HttpServer2.java:795)
at org.apache.hadoop.hdfs.qjournal.server.JournalNodeHttpServer.start(JournalNodeHttpServer.java:69)
at org.apache.hadoop.hdfs.qjournal.server.JournalNode.start(JournalNode.java:148)
at org.apache.hadoop.hdfs.qjournal.server.TestJournalNode.assertJNFailsToStart(TestJournalNode.java:303)
at org.apache.hadoop.hdfs.qjournal.server.TestJournalNode.testFailToStartWithBadConfig(TestJournalNode.java:295)
{code}
> TestJournalNode fails occasionally with bind exception
> ------------------------------------------------------
>
> Key: HDFS-8508
> URL: https://issues.apache.org/jira/browse/HDFS-8508
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: test
> Affects Versions: 2.7.0
> Reporter: Arpit Agarwal
>
> TestJournalNode uses the default port for {{dfs.journalnode.http-address}} so it fails occasionally when running with {{-Pparallel-tests}}.
> The same issue likely exists with other tests. Tests should generate a random port number with retry to reduce the chances of a collision.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)