Skip to content
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

Fix client lockup on docker after reboot #5568

Merged
merged 2 commits into from
Apr 16, 2019
Merged

Conversation

notnoop
Copy link
Contributor

@notnoop notnoop commented Apr 16, 2019

Fixes #5566 .

Fix a case where docker logging process may lock up nomad agent restart.

Looks like we have a case where docker logger is started even through logmon isn't. In such case, the fifo writer blocks indefinitely and because the open operation happens in the main goroutine, nomad agent blocks indefinitely.

This fixes the issue where the fifo open operation happens in goroutine instead of main goroutine.

We should follow up independently to ensure logmon <-> dockerlogger ordering and consider having task recovery happen in non-main goroutine with some sensible timeouts.

@notnoop notnoop requested a review from schmichael April 16, 2019 14:54
@notnoop notnoop force-pushed the b-nomad-logger-restart branch from 5baf13d to 96a54cb Compare April 16, 2019 15:02
@notnoop notnoop merged commit c07b729 into master Apr 16, 2019
@notnoop notnoop deleted the b-nomad-logger-restart branch April 17, 2019 12:50
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nomad 0.9.0 Client deadlocks when starting after reboot
2 participants