Github user neykov commented on the issue:
https://github.com/apache/brooklyn-server/pull/344
Marking tests integration is same as deleting them right now so I'd be wary
of such changes (integration tests don't get run, let alone on regular basis).
I was able to reproduce this by running two tests in parallel and slowing
them down so that while one of them has the JMX port already open the other
goes through the port selection process.
I think it's related to this comment -
https://github.com/apache/brooklyn-server/blob/master/utils/common/src/main/java/org/apache/brooklyn/util/net/Networking.java#L96-L98.
The JMX service binds to `0.0.0.0:40123` while
`LocalhostMachineProvisioningLocation.obtainPort` checks `127.0.0.1` for
available ports.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---