{"action":"created","issue":{"url":"https://api.github.com/repos/apache/incubator-brooklyn/issues/771","labels_url":"https://api.github.com/repos/apache/incubator-brooklyn/issues/771/labels{/name}","comments_url":"https://api.github.com/repos/apache/incubator-brooklyn/issues/771/comments","events_url":"https://api.github.com/repos/apache/incubator-brooklyn/issues/771/events","html_url":"https://github.com/apache/incubator-brooklyn/pull/771","id":97473352,"number":771,"title":"Don't leak machines on shutdown","user":{"login":"neykov","id":3612111,"avatar_url":"https://avatars.githubusercontent.com/u/3612111?v=3","gravatar_id":"","url":"https://api.github.com/users/neykov","html_url":"https://github.com/neykov","followers_url":"https://api.github.com/users/neykov/followers","following_url":"https://api.github.com/users/neykov/following{/other_user}","gists_url":"https://api.github.com/users/neykov/gists{/gist_id}","starred_url":"https://api.github.com/users/neykov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neykov/subscriptions","organizations_url":"https://api.github.com/users/neykov/orgs","repos_url":"https://api.github.com/users/neykov/repos","events_url":"https://api.github.com/users/neykov/events{/privacy}","received_events_url":"https://api.github.com/users/neykov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-27T14:15:02Z","updated_at":"2015-07-27T15:27:25Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/incubator-brooklyn/pulls/771","html_url":"https://github.com/apache/incubator-brooklyn/pull/771","diff_url":"https://github.com/apache/incubator-brooklyn/pull/771.diff","patch_url":"https://github.com/apache/incubator-brooklyn/pull/771.patch"},"body":"STOPping an app and then doing a shutdown-and-stop-apps could leak machines because the second stop (from the shutdown) can complete faster as it's not re-releasing the machines, then unmanage the app and cancel the first stop's tasks. Cancelling the tasks will not release the machines properly.\r\n\r\nThis PR works around the problem in the shutdown code. Double stopping an app will still keep the same behaviour."},"comment":{"url":"https://api.github.com/repos/apache/incubator-brooklyn/issues/comments/125244376","html_url":"https://github.com/apache/incubator-brooklyn/pull/771#issuecomment-125244376","issue_url":"https://api.github.com/repos/apache/incubator-brooklyn/issues/771","id":125244376,"user":{"login":"asfbot","id":5243949,"avatar_url":"https://avatars.githubusercontent.com/u/5243949?v=3","gravatar_id":"","url":"https://api.github.com/users/asfbot","html_url":"https://github.com/asfbot","followers_url":"https://api.github.com/users/asfbot/followers","following_url":"https://api.github.com/users/asfbot/following{/other_user}","gists_url":"https://api.github.com/users/asfbot/gists{/gist_id}","starred_url":"https://api.github.com/users/asfbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asfbot/subscriptions","organizations_url":"https://api.github.com/users/asfbot/orgs","repos_url":"https://api.github.com/users/asfbot/repos","events_url":"https://api.github.com/users/asfbot/events{/privacy}","received_events_url":"https://api.github.com/users/asfbot/received_events","type":"User","site_admin":false},"created_at":"2015-07-27T15:27:25Z","updated_at":"2015-07-27T15:27:25Z","body":"[incubator-brooklyn-pull-requests #1525](https://builds.apache.org/job/incubator-brooklyn-pull-requests/1525/) SUCCESS\nThis pull request looks good"}}