[ 
https://issues.apache.org/jira/browse/STORM-2886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16610995#comment-16610995
 ] 

Bo Hu commented on STORM-2886:
------------------------------

Hi,

I am a newbie to storm. I wonder is there any pointer on which specific part of 
codebase I can look into first? The `withNimbusDaemon` function is in 
LocalCluster.java.

Thanks,

Bo

> 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
>            Priority: Major
>              Labels: newbie
>
> 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
(v7.6.3#76005)

Reply via email to