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

Kihwal Lee commented on HDFS-10723:
-----------------------------------

It is more likely that another process grabbed the port. In general it is not a 
good idea to hard-core or reuse the same port number in unit tests. We had to 
fix a lot of such test cases in the past. The jenkins slave can run multiple 
jobs at the same time and also hdfs tests can run in parallel.

> TestRenameWhileOpen tries to restart NN with the same rpc port
> --------------------------------------------------------------
>
>                 Key: HDFS-10723
>                 URL: https://issues.apache.org/jira/browse/HDFS-10723
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: test
>            Reporter: Kihwal Lee
>
> In {{testWhileOpenRenameParentToNonexistentDir}},
> {code}
>       // restart cluster with the same namenode port as before.
>       // This ensures that leases are persisted in fsimage.
>       cluster.shutdown();
> {code}
> And we are getting test failures in precommit builds.
> {noformat}
> java.net.BindException: Problem binding to [localhost:47395]
>  java.net.BindException: Address already in use;
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to