You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consul should exit with code 0 when asked to shut down, not treating transport shutdown as errors when they are due to the shutdown requested by the user.
The logs would ideally make more sense to make clear to the human operator what's already shut down and what isn't.
The text was updated successfully, but these errors were encountered:
Overview of the Issue
When asked by systemd to stop, consul still exits with status 1, tripping over its own shutdown.
Reproduction Steps
systemctl stop consul.service
I find this output very confusing. First it says
agent: consul server down
andagent: shutdown complete
.So I assume it's shut down.
But then it prints more things to shut down, including
Stopping server
. Wait, I thought the server was already down as per output above?Then it notices
transport shutdown
, and apparently considers ihat an error and exits with exit code 1.But that doesn't make sense, since it's down because we asked it to shut down.
Environment
Consul
v1.18.2
on Linux; config:Proposed approach
transport shutdown
as errors when they are due to the shutdown requested by the user.The text was updated successfully, but these errors were encountered: