[
https://issues.apache.org/jira/browse/HDFS-10723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15409513#comment-15409513
]
Kihwal Lee edited comment on HDFS-10723 at 8/8/16 7:10 PM:
-----------------------------------------------------------
It is more likely that another process grabbed the port. In general it is not a
good idea to hard-code 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.
was (Author: kihwal):
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
> 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: [email protected]
For additional commands, e-mail: [email protected]