-
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 executes new handler during shutdown #800
Comments
Yikes! Tagged as bug! |
Issue appears to be https://github.com/hashicorp/consul/blob/master/command/lock.go#L141-L144 If c.ShutdownCh signals, lu.lockFn (either Lock or Acquire) will return 'nil, nil' (https://github.com/hashicorp/consul/blob/master/api/lock.go#L156). This should be instead something like:
|
Also 'return code of 1 for all error states' may be something that could use enhancement. |
Bump: really needing this one squashed. |
… 15min (hashicorp#800) On Azure, volumes sometimes could take quite long to provision. Since we were waiting for 5min before, sometimes it's not enough time for pods to come up and be healthy.
I found consul lock executes new handler after receiving SIGINT. Here is log of consul_lock.
The handler that was executed during shutdown phase remains after consul lock ended.
The text was updated successfully, but these errors were encountered: