-
Notifications
You must be signed in to change notification settings - Fork 13
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
service: simplify Stop() & improve errors #884
Conversation
2fb5770
to
215bd2d
Compare
215bd2d
to
9e8eb64
Compare
* moved Dependency.Stop() logic into Service.Stop(). * return Stop() errors for all dependencies, not just the first one. * removed unneeded TestStopDependency() & TestIntegrationStopDependency() tests.
9e8eb64
to
c254b15
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why did you remove the mutex here ? I'm not really sure why we had one in the first place maybe to fix some strange behaviors with docker when we stop containers or something like that
That mutex was there to prevent concurrent writes to |
this bug was introduced by #884. service itself should always be stopped first to give it a chance to properly shutdown itself. if depencies were stopped first, service may try to reconnect them or may start some fault toleration protocols for no reason.
No description provided.