[ 
https://issues.apache.org/jira/browse/RATIS-1981?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Attila Doroszlai updated RATIS-1981:
------------------------------------
    Description: 
Tests currently use random ports obtained.  The same port may be assigned to 
multiple RPC endpoints, especially if the server using the random port is not 
started right away.

{code}
org.apache.ratis.grpc.TestGroupManagementWithGrpc.testMultiGroup5Nodes  Time 
elapsed: 1.064 s  <<< ERROR!
...
Caused by: java.io.IOException: Failed to bind to address 0.0.0.0/0.0.0.0:45379
{code}

* 
https://github.com/adoroszlai/ratis-build-results/blob/master/2023/12/13/2859/unit-grpc/ratis-test/org.apache.ratis.grpc.TestGroupManagementWithGrpc.txt
* 
https://github.com/adoroszlai/ratis-build-results/blob/master/2023/12/13/2862/unit-grpc/ratis-test/org.apache.ratis.grpc.TestGroupManagementWithGrpc.txt

  was:Tests currently use random ports obtained.  The same port may be assigned 
to multiple RPC endpoints, especially if the server using the random port is 
not started right away.


> Avoid random ports in tests
> ---------------------------
>
>                 Key: RATIS-1981
>                 URL: https://issues.apache.org/jira/browse/RATIS-1981
>             Project: Ratis
>          Issue Type: Improvement
>          Components: test
>            Reporter: Attila Doroszlai
>            Assignee: Attila Doroszlai
>            Priority: Major
>
> Tests currently use random ports obtained.  The same port may be assigned to 
> multiple RPC endpoints, especially if the server using the random port is not 
> started right away.
> {code}
> org.apache.ratis.grpc.TestGroupManagementWithGrpc.testMultiGroup5Nodes  Time 
> elapsed: 1.064 s  <<< ERROR!
> ...
> Caused by: java.io.IOException: Failed to bind to address 
> 0.0.0.0/0.0.0.0:45379
> {code}
> * 
> https://github.com/adoroszlai/ratis-build-results/blob/master/2023/12/13/2859/unit-grpc/ratis-test/org.apache.ratis.grpc.TestGroupManagementWithGrpc.txt
> * 
> https://github.com/adoroszlai/ratis-build-results/blob/master/2023/12/13/2862/unit-grpc/ratis-test/org.apache.ratis.grpc.TestGroupManagementWithGrpc.txt



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to