[ 
https://issues.apache.org/jira/browse/HDDS-1934?focusedWorklogId=291129&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-291129
 ]

ASF GitHub Bot logged work on HDDS-1934:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 08/Aug/19 10:10
            Start Date: 08/Aug/19 10:10
    Worklog Time Spent: 10m 
      Work Description: adoroszlai commented on pull request #1254: HDDS-1934. 
TestSecureOzoneCluster may fail due to port conflict
URL: https://github.com/apache/hadoop/pull/1254
 
 
   ## What changes were proposed in this pull request?
   
   Use random port for SCM for the test cases where it is started in 
`TestSecureOzoneCluster`.
   
   https://issues.apache.org/jira/browse/HDDS-1934
   
   ## How was this patch tested?
   
   ```
   $ cd hadoop-ozone/dist/target/ozone-0.5.0-SNAPSHOT/compose/ozone
   $ docker-compose up -d
   $ cd -
   $ mvn -Phdds -pl :hadoop-ozone-integration-test test 
-Dtest=TestSecureOzoneCluster
   ...
   [INFO] Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
37.32 s - in org.apache.hadoop.ozone.TestSecureOzoneCluster
   ```
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 291129)
            Time Spent: 10m
    Remaining Estimate: 0h

> TestSecureOzoneCluster may fail due to port conflict
> ----------------------------------------------------
>
>                 Key: HDDS-1934
>                 URL: https://issues.apache.org/jira/browse/HDDS-1934
>             Project: Hadoop Distributed Data Store
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 0.4.1
>            Reporter: Doroszlai, Attila
>            Assignee: Doroszlai, Attila
>            Priority: Minor
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> {{TestSecureOzoneCluster}} fails if SCM is already running on same host.
> Steps to reproduce:
> # Start {{ozone}} docker compose cluster
> # Run {{TestSecureOzoneCluster}} test
> {noformat:title=https://ci.anzix.net/job/ozone/17602/consoleText}
> [ERROR] Tests run: 10, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 
> 49.821 s <<< FAILURE! - in org.apache.hadoop.ozone.TestSecureOzoneCluster
> [ERROR] 
> testSCMSecurityProtocol(org.apache.hadoop.ozone.TestSecureOzoneCluster)  Time 
> elapsed: 6.59 s  <<< ERROR!
> java.net.BindException: Port in use: 0.0.0.0:9876
>       at 
> org.apache.hadoop.http.HttpServer2.constructBindException(HttpServer2.java:1203)
>       at 
> org.apache.hadoop.http.HttpServer2.bindForSinglePort(HttpServer2.java:1225)
>       at 
> org.apache.hadoop.http.HttpServer2.openListeners(HttpServer2.java:1284)
>       at org.apache.hadoop.http.HttpServer2.start(HttpServer2.java:1139)
>       at 
> org.apache.hadoop.hdds.server.BaseHttpServer.start(BaseHttpServer.java:181)
>       at 
> org.apache.hadoop.hdds.scm.server.StorageContainerManager.start(StorageContainerManager.java:779)
>       at 
> org.apache.hadoop.ozone.TestSecureOzoneCluster.testSCMSecurityProtocol(TestSecureOzoneCluster.java:277)
> ...
> [ERROR] testSecureOmReInit(org.apache.hadoop.ozone.TestSecureOzoneCluster)  
> Time elapsed: 5.312 s  <<< ERROR!
> java.net.BindException: Port in use: 0.0.0.0:9876
>       at 
> org.apache.hadoop.http.HttpServer2.constructBindException(HttpServer2.java:1203)
>       at 
> org.apache.hadoop.http.HttpServer2.bindForSinglePort(HttpServer2.java:1225)
>       at 
> org.apache.hadoop.http.HttpServer2.openListeners(HttpServer2.java:1284)
>       at org.apache.hadoop.http.HttpServer2.start(HttpServer2.java:1139)
>       at 
> org.apache.hadoop.hdds.server.BaseHttpServer.start(BaseHttpServer.java:181)
>       at 
> org.apache.hadoop.hdds.scm.server.StorageContainerManager.start(StorageContainerManager.java:779)
>       at 
> org.apache.hadoop.ozone.TestSecureOzoneCluster.testSecureOmReInit(TestSecureOzoneCluster.java:743)
> ...
> [ERROR] 
> testSecureOmInitSuccess(org.apache.hadoop.ozone.TestSecureOzoneCluster)  Time 
> elapsed: 5.312 s  <<< ERROR!
> java.net.BindException: Port in use: 0.0.0.0:9876
>       at 
> org.apache.hadoop.http.HttpServer2.constructBindException(HttpServer2.java:1203)
>       at 
> org.apache.hadoop.http.HttpServer2.bindForSinglePort(HttpServer2.java:1225)
>       at 
> org.apache.hadoop.http.HttpServer2.openListeners(HttpServer2.java:1284)
>       at org.apache.hadoop.http.HttpServer2.start(HttpServer2.java:1139)
>       at 
> org.apache.hadoop.hdds.server.BaseHttpServer.start(BaseHttpServer.java:181)
>       at 
> org.apache.hadoop.hdds.scm.server.StorageContainerManager.start(StorageContainerManager.java:779)
>       at 
> org.apache.hadoop.ozone.TestSecureOzoneCluster.testSecureOmInitSuccess(TestSecureOzoneCluster.java:789)
> ...
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

---------------------------------------------------------------------
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