Skip to content

hot restart: block new starts if previous process is still initializing#553

Merged
mattklein123 merged 2 commits intomasterfrom
hot_restart_init_block
Mar 10, 2017
Merged

hot restart: block new starts if previous process is still initializing#553
mattklein123 merged 2 commits intomasterfrom
hot_restart_init_block

Conversation

@mattklein123
Copy link
Copy Markdown
Member

fixes #550

@mattklein123
Copy link
Copy Markdown
Member Author

@lyft/network-team

@kyessenov can you please test this PR and let me know if it fixes your issue.

@kyessenov
Copy link
Copy Markdown
Contributor

I have trouble reproducing the race reliably. We run the fast restart on each pre-submit, so I can let you know if I this happens again after merge.

@mattklein123
Copy link
Copy Markdown
Member Author

@kyessenov deploying a change like this at Lyft is kind of a pain. I would really like to know if this fixes your issue, and you are going to have to write code around it also to handle the error case. Isn't there some way you can test this locally?

@mattklein123
Copy link
Copy Markdown
Member Author

@kyessenov has confirmed fix.

@lyft/network-team please review.

}

// Here we catch the case where a new Envoy starts up when the current Envoy has not yet fully
// initialized. The startup logic is quite compicated, and it's not worth trying to handle this
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo complicated

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will fix in follow up.

@mattklein123 mattklein123 merged commit 2685331 into master Mar 10, 2017
@mattklein123 mattklein123 deleted the hot_restart_init_block branch March 10, 2017 19:39
mathetake pushed a commit that referenced this pull request Mar 3, 2026
**Commit Message**

Setting to use the latest release! Apologies for the delay.

**Related Issues/PRs (if applicable)**

#524

Signed-off-by: Aaron Choo <achoo30@bloomberg.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Potential race in hot restart protocol

4 participants