scassandra / scassandra-server

Stubbed Cassandra
http://www.scassandra.org
Other
87 stars 34 forks source link

[#165] Update PortLocator to use OS to get port #166

Closed tolbertam closed 8 years ago

tolbertam commented 8 years ago

Use new ServerSocket(0) to have OS provide an ephemeral port and return it.

Will run on travis a few times to see if it really fixes the issue or not, since I could not get the previous implementation to fail locally.

tolbertam commented 8 years ago

Ran this 4 consecutive times. It passed 3/4 times, with the one time it failed tied to timing out of a REST endpoint which is not related...I'll debug that if it keeps manifesting too. Merging.