{"action":"created","issue":{"url":"https://api.github.com/repos/meadsteve/chaos-spawn/issues/19","labels_url":"https://api.github.com/repos/meadsteve/chaos-spawn/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/meadsteve/chaos-spawn/issues/19/comments","events_url":"https://api.github.com/repos/meadsteve/chaos-spawn/issues/19/events","html_url":"https://github.com/meadsteve/chaos-spawn/issues/19","id":120216433,"number":19,"title":"Consider not allowing the killing of a Supervisor","user":{"login":"fishcakez","id":2001229,"avatar_url":"https://avatars.githubusercontent.com/u/2001229?v=3","gravatar_id":"","url":"https://api.github.com/users/fishcakez","html_url":"https://github.com/fishcakez","followers_url":"https://api.github.com/users/fishcakez/followers","following_url":"https://api.github.com/users/fishcakez/following{/other_user}","gists_url":"https://api.github.com/users/fishcakez/gists{/gist_id}","starred_url":"https://api.github.com/users/fishcakez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fishcakez/subscriptions","organizations_url":"https://api.github.com/users/fishcakez/orgs","repos_url":"https://api.github.com/users/fishcakez/repos","events_url":"https://api.github.com/users/fishcakez/events{/privacy}","received_events_url":"https://api.github.com/users/fishcakez/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/meadsteve/chaos-spawn/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/meadsteve/chaos-spawn/labels/Needs%20discussion","name":"Needs discussion","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-03T16:37:55Z","updated_at":"2015-12-04T10:55:07Z","closed_at":null,"body":"A supervisor should not be killed because this temporarily orphans its children. This means that if its parent restarts it, the children may still be alive, which can lead to already_started errors and other race conditions or weird behaviour. This can easily bring down an application (and the node) where a bug does not exist if one of these children is a registered supervisor because it may take time for its tree to be shutdown. During this time the max restart limit might be reached as restart attempts will yield child failed to start with reason `:already_started`."},"comment":{"url":"https://api.github.com/repos/meadsteve/chaos-spawn/issues/comments/161936831","html_url":"https://github.com/meadsteve/chaos-spawn/issues/19#issuecomment-161936831","issue_url":"https://api.github.com/repos/meadsteve/chaos-spawn/issues/19","id":161936831,"user":{"login":"meadsteve","id":1663120,"avatar_url":"https://avatars.githubusercontent.com/u/1663120?v=3","gravatar_id":"","url":"https://api.github.com/users/meadsteve","html_url":"https://github.com/meadsteve","followers_url":"https://api.github.com/users/meadsteve/followers","following_url":"https://api.github.com/users/meadsteve/following{/other_user}","gists_url":"https://api.github.com/users/meadsteve/gists{/gist_id}","starred_url":"https://api.github.com/users/meadsteve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meadsteve/subscriptions","organizations_url":"https://api.github.com/users/meadsteve/orgs","repos_url":"https://api.github.com/users/meadsteve/repos","events_url":"https://api.github.com/users/meadsteve/events{/privacy}","received_events_url":"https://api.github.com/users/meadsteve/received_events","type":"User","site_admin":false},"created_at":"2015-12-04T10:55:07Z","updated_at":"2015-12-04T10:55:07Z","body":"I'm definitely leaning towards replacing this functionality that kills all of the supervisors children. As this was the original reason for adding this functionality in the first place."}}