You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "pratap chandu (Jira)" <ji...@apache.org> on 2022/10/31 15:22:00 UTC

[jira] [Commented] (HDDS-216) hadoop-hdds unit tests should use randomized ports

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

pratap chandu commented on HDDS-216:
------------------------------------

 

TestStorageContainerManagerHttpServer#testHttpPolicy() is using random port numbers and also setRandomContainerPort(false) was removed from [https://github.com/apache/ozone/blob/master/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/container/ozoneimpl/TestOzoneContainer.java] . 

> hadoop-hdds unit tests should use randomized ports
> --------------------------------------------------
>
>                 Key: HDDS-216
>                 URL: https://issues.apache.org/jira/browse/HDDS-216
>             Project: Apache Ozone
>          Issue Type: Bug
>          Components: test
>            Reporter: Arpit Agarwal
>            Assignee: pratap chandu
>            Priority: Major
>              Labels: alpha2, newbie, test
>         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
(v8.20.10#820010)

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