hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arpit Agarwal (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HDFS-6769) TestRefreshCallQueue and TestGenericRefresh should use ephemeral ports
Date Tue, 29 Jul 2014 18:40:40 GMT

     [ https://issues.apache.org/jira/browse/HDFS-6769?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Arpit Agarwal resolved HDFS-6769.
---------------------------------

    Resolution: Duplicate

> TestRefreshCallQueue and TestGenericRefresh should use ephemeral ports
> ----------------------------------------------------------------------
>
>                 Key: HDFS-6769
>                 URL: https://issues.apache.org/jira/browse/HDFS-6769
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 2.5.0
>            Reporter: Arpit Agarwal
>
> TestRefreshCallQueue and TestGenericRefresh use the same hard-coded port number (54222)
leaving them susceptible to 'port in use' errors with parallel testing [as seen here|https://builds.apache.org/job/PreCommit-HDFS-Build/7484//testReport/org.apache.hadoop/TestRefreshCallQueue/testRefresh/].
> {code}
> Error Message
> Problem binding to [localhost:54222] java.net.BindException: Address already in use;
For more details see:  http://wiki.apache.org/hadoop/BindException
> Stacktrace
> java.net.BindException: Problem binding to [localhost:54222] java.net.BindException:
Address already in use; For more details see:  http://wiki.apache.org/hadoop/BindException
> 	at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:719)
> 	at org.apache.hadoop.ipc.Server.bind(Server.java:422)
> 	at org.apache.hadoop.ipc.Server$Listener.<init>(Server.java:564)
> 	at org.apache.hadoop.ipc.Server.<init>(Server.java:2252)
> 	at org.apache.hadoop.ipc.RPC$Server.<init>(RPC.java:901)
> 	at org.apache.hadoop.ipc.ProtobufRpcEngine$Server.<init>(ProtobufRpcEngine.java:505)
> 	at org.apache.hadoop.ipc.ProtobufRpcEngine.getServer(ProtobufRpcEngine.java:480)
> 	at org.apache.hadoop.ipc.RPC$Builder.build(RPC.java:746)
> 	at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.<init>(NameNodeRpcServer.java:314)
> 	at org.apache.hadoop.hdfs.server.namenode.NameNode.createRpcServer(NameNode.java:618)
> 	at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:591)
> 	at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:756)
> 	at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:740)
> 	at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1425)
> 	at org.apache.hadoop.hdfs.MiniDFSCluster.createNameNode(MiniDFSCluster.java:1007)
> 	at org.apache.hadoop.hdfs.MiniDFSCluster.createNameNodesAndSetConf(MiniDFSCluster.java:878)
> 	at org.apache.hadoop.hdfs.MiniDFSCluster.initMiniDFSCluster(MiniDFSCluster.java:707)
> 	at org.apache.hadoop.hdfs.MiniDFSCluster.<init>(MiniDFSCluster.java:378)
> 	at org.apache.hadoop.hdfs.MiniDFSCluster$Builder.build(MiniDFSCluster.java:359)
> 	at org.apache.hadoop.TestRefreshCallQueue.setUp(TestRefreshCallQueue.java:61)
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message