hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mukul Kumar Singh (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDDS-216) hadoop-hdds unit tests should use randomized ports
Date Fri, 20 Jul 2018 08:51:00 GMT

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

Mukul Kumar Singh commented on HDDS-216:
----------------------------------------

Thanks for working on this [~Sandeep Nemuri].

DFS_CONTAINER_RATIS_IPC_RANDOM_PORT config variable also needs to be set to true, this will
allow random port to be selected for XceiverServerRatis as well.

Rest the patch looks good to me.

> hadoop-hdds unit tests should use randomized ports
> --------------------------------------------------
>
>                 Key: HDDS-216
>                 URL: https://issues.apache.org/jira/browse/HDDS-216
>             Project: Hadoop Distributed Data Store
>          Issue Type: Bug
>          Components: test
>            Reporter: Arpit Agarwal
>            Assignee: Sandeep Nemuri
>            Priority: Major
>              Labels: newbie, test
>             Fix For: 0.2.1
>
>         Attachments: HDDS-216.001.patch, HDDS-216.002.patch
>
>
> MiniOzoneCluster should use randomized ports by default, so individual tests don't have
to do anything to avoid port conflicts at runtime. e.g. TestStorageContainerManagerHttpServer
fails if port 9876 is in use.
> {code}
> [INFO] Running org.apache.hadoop.hdds.scm.TestStorageContainerManagerHttpServer
> [ERROR] Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.084 s <<<
FAILURE! - in org.apache.hadoop.hdds.scm.TestStorageContainerManagerHttpServer
> [ERROR] testHttpPolicy[0](org.apache.hadoop.hdds.scm.TestStorageContainerManagerHttpServer)
 Time elapsed: 0.401 s  <<< ERROR!
> java.net.BindException: Port in use: 0.0.0.0:9876
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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


Mime
View raw message