-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
consul lock may spawn the watched process at shutdown #1155
Comments
I've investigated this matter further and it appears to be a race condition that can occur when a SIGTERM is sent to multiple consul lock processes at approximately the same time. The short story is this:
|
mfischer-zd
added a commit
to mfischer-zd/consul
that referenced
this issue
Aug 5, 2015
Fix a race condition between startChild() and killChild() that could lead to an orphaned managed process. Fixes hashicorp#1155
mfischer-zd
added a commit
to zendesk/consul
that referenced
this issue
Aug 25, 2015
Fix a race condition between startChild() and killChild() that could lead to an orphaned managed process. Fixes hashicorp#1155
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We saw this unusual chain of events reported by
consul lock
after sending it a SIGTERM today:After this, consul exited and
myapp
was orphaned and reparented to PID 1.The text was updated successfully, but these errors were encountered: