[
https://issues.apache.org/jira/browse/GEODE-9715?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17428511#comment-17428511
]
Dale Emery commented on GEODE-9715:
-----------------------------------
{{AvailablePortHelper}} can't solve this. The problem is that the membership
port range (which was used in this test) overlaps with the ephemeral port range
on Linux, Windows, and macOS. By the time {{AvailablePortHelper}} tells you
that a port in that range is available, some other process may have already
bound to it.
This problem also exists in {{AvailablePort}} (which is part of the product).
But because this is an internal component, and nothing in the product currently
uses it to check availability of membership ports, I don't think this is a
release blocker.
I didn't realize this ticket existed, so I created another one:
https://issues.apache.org/jira/browse/GEODE-9725
> 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)