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

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

When a {{MiniDFSCluster}} is brought up without setting the rpc port, it will 
binds to a random available port. There is no need to find and specify one. So 
making it bind to a random port is easy. Take a look at other test cases.

The test might be trying to use the same port for a specific reason. If this is 
the case, fixing it will be a bit more complicated.

> 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
>         Attachments: testWhileOpenRenameParentToNonexistentDir.txt
>
>
> 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