Patrick Rhomberg created GEODE-5167:
---------------------------------------
Summary: Improve robustness of DUnit Testing by decreasing
likelihood of port conflicts
Key: GEODE-5167
URL: https://issues.apache.org/jira/browse/GEODE-5167
Project: Geode
Issue Type: Bug
Reporter: Patrick Rhomberg
Much of our DUnit framework begins members that ultimately reaches
{{o.a.g.internal.AvailablePort}} to choose a port on which the locator and
members will communicate. This class is naive and can return the same
randomly-chosen port across multiple requests. Though statistically rare, this
has proven not infrequent with our current rate of testing.
Possible amelioration: The possibility of collision could be reduced
significantly if the {{AvailablePort}} class retains the previous [N=20] ports
it has offered as available, refusing to offer as available a port it has
offered recently.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)