[
https://issues.apache.org/jira/browse/GEODE-5674?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dan Smith updated GEODE-5674:
-----------------------------
Labels: swat (was: )
> Stop picking ports randomly for tests
> -------------------------------------
>
> Key: GEODE-5674
> URL: https://issues.apache.org/jira/browse/GEODE-5674
> Project: Geode
> Issue Type: Improvement
> Reporter: Dan Smith
> Priority: Major
> Labels: swat
>
> Our tests currently use AvailablePortHelper and AvailablePort to find a
> random port that is not in use.
> However, this can lead to port collisions because after the port is returned,
> it can be picked up by another connection.
> If we did not assign ports randomly, but instead iterated over a pool of
> ports, we would not return the same port twice until exhaust the pool, and we
> would be much less likely to get a port collision from two calls to
> AvailablePortHelper.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)