-
Notifications
You must be signed in to change notification settings - Fork 940
v4.1: Fix segv when launching with static ports #8339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
From the debug output this might be sufficient (it looks like it is picking up the correct port in the oob). However, my test box with the firewall is down right now. I'll have to test tomorrow. Posting this here for now. |
|
@jjhursey Let's chat about this on the phone, if you don't mind - I'd like to better understand what is going on so I can perhaps help advise on a solution. It seems odd that we'd need a different nidmap constructor as it shouldn't care what port is being used by each daemon. |
|
Sure. I'll ping you on slack. I agree - I'm not sure why we needed this function anymore, but this break has been there since the framework was created in 4cd7f3b (replaced |
a19d3a0 to
f5e0798
Compare
|
I think this is ready for review. Ralph and I chatted about this and decided to remove the optimization path around static_ports - for reasons in the commit message. I think I got everything, and testing showed it seems to be working. Once this PR is reviewed and finalized then I'll PR it to the |
rhc54
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A little more cleanup to do, I think.
ae776e1 to
fe9bd36
Compare
Signed-off-by: Joshua Hursey <[email protected]>
* After discussing this with Ralph we concluded that the
original code has some deficiencies that are not worth
preserving.
- The optimization here was that if we have a single
static port then we can calculate the the URI of all
of the daemons (including the HNP). Thus we do not
have to have the daemons phone home to the HNP for
the contact information. Instead the first message
they receive would be the launch message.
- This optimization path really only worked for a
single static port, not a set of them.
- This optimization wasn't used. As evidence by how
long this bug has been present.
- Finally, in practice, it didn't really save much time
during launch.
* Remove the build_daemon_nidmap from the regx framework structure
Signed-off-by: Joshua Hursey <[email protected]>
fe9bd36 to
92bfc09
Compare
|
@rhc54 I pushed a new version that should address your comments. Except for #8339 (comment) Note that the diff for |
|
bot:aws:retest CI server failure |
build_daemon_nidmapfunction fromregxframework - as it is not used.