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

Alexander Murmann commented on GEODE-9715:
------------------------------------------

[~demery] shouldn't the AvailablePortHelper solve exactly this?

> CI: AvailablePortHelperIntegrationTest 
> getRandomAvailableTCPPortRange_returnsUsablePorts failed with Address already 
> in use
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: GEODE-9715
>                 URL: https://issues.apache.org/jira/browse/GEODE-9715
>             Project: Geode
>          Issue Type: Bug
>          Components: tests
>            Reporter: Xiaojian Zhou
>            Priority: Major
>              Labels: needsTriage
>
> https://concourse.apachegeode-ci.info/teams/main/pipelines/apache-develop-main/jobs/integration-test-openjdk8/builds/259
> {code:java}
> AvailablePortHelperIntegrationTest > 
> getRandomAvailableTCPPortRange_returnsUsablePorts(useMembershipPortRange=true)
>  FAILED
>     java.io.UncheckedIOException: java.net.BindException: Address already in 
> use (Bind failed)
>         at 
> org.apache.geode.internal.AvailablePortHelperIntegrationTest$PortAssertion.isUsable(AvailablePortHelperIntegrationTest.java:280)
>         at 
> org.apache.geode.internal.AvailablePortHelperIntegrationTest.lambda$getRandomAvailableTCPPortRange_returnsUsablePorts$0(AvailablePortHelperIntegrationTest.java:87)
>         at 
> java.util.Spliterators$IntArraySpliterator.forEachRemaining(Spliterators.java:1032)
>         at java.util.stream.IntPipeline$Head.forEach(IntPipeline.java:581)
>         at 
> org.apache.geode.internal.AvailablePortHelperIntegrationTest.getRandomAvailableTCPPortRange_returnsUsablePorts(AvailablePortHelperIntegrationTest.java:86)
>         Caused by:
>         java.net.BindException: Address already in use (Bind failed)
>             at java.net.PlainSocketImpl.socketBind(Native Method)
>             at 
> java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)
>             at java.net.ServerSocket.bind(ServerSocket.java:390)
>             at java.net.ServerSocket.bind(ServerSocket.java:344)
>             at 
> org.apache.geode.internal.AvailablePortHelperIntegrationTest$PortAssertion.isUsable(AvailablePortHelperIntegrationTest.java:273)
>             ... 4 more
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to