Robert Joseph Evans created STORM-2886:
------------------------------------------
Summary: Look into better phemeral port support in
LocalCluster.withNimbusDaemon
Key: STORM-2886
URL: https://issues.apache.org/jira/browse/STORM-2886
Project: Apache Storm
Issue Type: Improvement
Components: storm-server
Affects Versions: 1.0.0, 2.0.0
Reporter: Robert Joseph Evans
We have a few tests that use a LocalCluster and then launch an actual Nimbus
Thrift Server instance. This is mostly to test that the thrift code works
properly.
In some cases this can cause issues because by default it is going to get a
single hard coded port.
In most cases we work around this, like in STORM-2885 by finding a free port
and then using that for both client and server configs.
This does not eliminate the race, but it makes it very unlikely. It would be
great if we could eliminate the race by somehow bringing up the thrift server
on an ephemeral port, and then providing a way to get that port through an API
in LocalCluster.
One of the issues we would have to overcome is that we explicitly check for
positive port numbers, and we would only want to turn that off for this
particular use case.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)