[
https://issues.apache.org/jira/browse/HDFS-6443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14006591#comment-14006591
]
Arpit Agarwal commented on HDFS-6443:
-------------------------------------
Thanks for reporting this and the patch [~wuzesheng].
A better solution is to randomize the initial port selection and optionally add
a retry or two in case the chosen port is in use.
> Fix MiniQJMHACluster related tests failure
> ------------------------------------------
>
> Key: HDFS-6443
> URL: https://issues.apache.org/jira/browse/HDFS-6443
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: test
> Affects Versions: 2.4.0
> Reporter: Zesheng Wu
> Priority: Minor
> Attachments: HDFS-6443.patch
>
>
> MiniQJMHACluster uses fixed ports(10000/10001/10002/10003) to set up a
> cluster for testing, this will result in port conflicts when multiple tests
> which rely on MiniQJMHACluster running concurrently. The can easily reproduce
> when run 'mvn test -Pparallel-tests' under hadoop-hdfs directory.
--
This message was sent by Atlassian JIRA
(v6.2#6252)