{"action":"created","issue":{"url":"https://api.github.com/repos/ContainerSolutions/mesos-starter/issues/47","repository_url":"https://api.github.com/repos/ContainerSolutions/mesos-starter","labels_url":"https://api.github.com/repos/ContainerSolutions/mesos-starter/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/ContainerSolutions/mesos-starter/issues/47/comments","events_url":"https://api.github.com/repos/ContainerSolutions/mesos-starter/issues/47/events","html_url":"https://github.com/ContainerSolutions/mesos-starter/pull/47","id":142339185,"number":47,"title":"Framework id is being written as a full protobuf object, not a string","user":{"login":"philwinder","id":8793723,"avatar_url":"https://avatars.githubusercontent.com/u/8793723?v=3","gravatar_id":"","url":"https://api.github.com/users/philwinder","html_url":"https://github.com/philwinder","followers_url":"https://api.github.com/users/philwinder/followers","following_url":"https://api.github.com/users/philwinder/following{/other_user}","gists_url":"https://api.github.com/users/philwinder/gists{/gist_id}","starred_url":"https://api.github.com/users/philwinder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philwinder/subscriptions","organizations_url":"https://api.github.com/users/philwinder/orgs","repos_url":"https://api.github.com/users/philwinder/repos","events_url":"https://api.github.com/users/philwinder/events{/privacy}","received_events_url":"https://api.github.com/users/philwinder/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ContainerSolutions/mesos-starter/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"mwl","id":81906,"avatar_url":"https://avatars.githubusercontent.com/u/81906?v=3","gravatar_id":"","url":"https://api.github.com/users/mwl","html_url":"https://github.com/mwl","followers_url":"https://api.github.com/users/mwl/followers","following_url":"https://api.github.com/users/mwl/following{/other_user}","gists_url":"https://api.github.com/users/mwl/gists{/gist_id}","starred_url":"https://api.github.com/users/mwl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwl/subscriptions","organizations_url":"https://api.github.com/users/mwl/orgs","repos_url":"https://api.github.com/users/mwl/repos","events_url":"https://api.github.com/users/mwl/events{/privacy}","received_events_url":"https://api.github.com/users/mwl/received_events","type":"User","site_admin":false},"milestone":null,"comments":16,"created_at":"2016-03-21T12:58:19Z","updated_at":"2016-03-21T15:00:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ContainerSolutions/mesos-starter/pulls/47","html_url":"https://github.com/ContainerSolutions/mesos-starter/pull/47","diff_url":"https://github.com/ContainerSolutions/mesos-starter/pull/47.diff","patch_url":"https://github.com/ContainerSolutions/mesos-starter/pull/47.patch"},"body":"Sometimes there is state left over in zookeeper when shutting down a framework. When a new framework starts, it thinks there are three running tasks, when in fact there are none.\r\n\r\nTo replicate (confirmed using Kibana on real life Mesos cluster on AWS):\r\n1. Start framework with marathon.\r\n2. Use marathon to destroy framework\r\n3. Start framework with marathon.\r\nThe new framework will then kill all previous tasks and not start any new ones.\r\n\r\nWork around:\r\nDelete the `/${framework_name}/tasks` zNode in zookeeper."},"comment":{"url":"https://api.github.com/repos/ContainerSolutions/mesos-starter/issues/comments/199327346","html_url":"https://github.com/ContainerSolutions/mesos-starter/pull/47#issuecomment-199327346","issue_url":"https://api.github.com/repos/ContainerSolutions/mesos-starter/issues/47","id":199327346,"user":{"login":"philwinder","id":8793723,"avatar_url":"https://avatars.githubusercontent.com/u/8793723?v=3","gravatar_id":"","url":"https://api.github.com/users/philwinder","html_url":"https://github.com/philwinder","followers_url":"https://api.github.com/users/philwinder/followers","following_url":"https://api.github.com/users/philwinder/following{/other_user}","gists_url":"https://api.github.com/users/philwinder/gists{/gist_id}","starred_url":"https://api.github.com/users/philwinder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philwinder/subscriptions","organizations_url":"https://api.github.com/users/philwinder/orgs","repos_url":"https://api.github.com/users/philwinder/repos","events_url":"https://api.github.com/users/philwinder/events{/privacy}","received_events_url":"https://api.github.com/users/philwinder/received_events","type":"User","site_admin":false},"created_at":"2016-03-21T15:00:56Z","updated_at":"2016-03-21T15:00:57Z","body":"LGTM. Tested fixed:\r\nSo, First scheduler:\r\n```2016-03-21 14:51:05.680  INFO 1 --- [       Thread-5] c.c.mesos.scheduler.UniversalScheduler   : Framework registrered with frameworkId=68728969-b184-41b6-944f-15606e6b14ce-0005\r\n```\r\ndocker kill... etc. Second scheduler:\r\n```2016-03-21 14:56:27.641  INFO 1 --- [       Thread-5] c.c.mesos.scheduler.UniversalScheduler   : Framework registrered with frameworkId=68728969-b184-41b6-944f-15606e6b14ce-0005\r\n```\r\n![screen shot 2016-03-21 at 14 59 09](https://cloud.githubusercontent.com/assets/8793723/13922768/b56bfc68-ef75-11e5-8c16-150d71e9a21a.png)\r\n\n\n[![Approved with PullApprove](https://img.shields.io/badge/pullapprove-approved-brightgreen.svg)](https://pullapprove.com/ContainerSolutions/mesos-starter/pull-request/47/?utm_source=github-pr&utm_medium=comment-badge&utm_campaign=ContainerSolutions/mesos-starter)"}}