BDEV-13675 Check JMX port on 127.0.0.1 explicitly.

Merged
#271 · Created  · Last updated

Merged pull request

Merged in issue-6.3/BDEV-13675-bturner-free-loopback-port (pull request #271)

75f3112·Author: ·Closed by: ·2017-08-08

Description

macOS appears to have a different behavior from other operating systems which results in new ServerSocket(7995) working, even if 127.0.0.1:7995 is in use. This results in failures when trying to start more than one instance of Bitbucket Server on the same macOS host because the second instance doesn't detect that the first instance has taken the default JMX port.

  • Added ProductHandlerUtil.pickFreePort(int, InetAddress) to allow testing for a free port on a specific interface

  • Updated BitbucketProductHandler.pickJmxPort to explicitly test for a free port on 127.0.0.1

0 attachments

0 comments

Loading commits...