{"action":"created","issue":{"url":"https://api.github.com/repos/apache/incubator-reef/issues/596","labels_url":"https://api.github.com/repos/apache/incubator-reef/issues/596/labels{/name}","comments_url":"https://api.github.com/repos/apache/incubator-reef/issues/596/comments","events_url":"https://api.github.com/repos/apache/incubator-reef/issues/596/events","html_url":"https://github.com/apache/incubator-reef/pull/596","id":113822573,"number":596,"title":"[REEF-826] Add state transition check in ResourceManagerStatus.setState","user":{"login":"zerg-zerg","id":1516151,"avatar_url":"https://avatars.githubusercontent.com/u/1516151?v=3","gravatar_id":"","url":"https://api.github.com/users/zerg-zerg","html_url":"https://github.com/zerg-zerg","followers_url":"https://api.github.com/users/zerg-zerg/followers","following_url":"https://api.github.com/users/zerg-zerg/following{/other_user}","gists_url":"https://api.github.com/users/zerg-zerg/gists{/gist_id}","starred_url":"https://api.github.com/users/zerg-zerg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zerg-zerg/subscriptions","organizations_url":"https://api.github.com/users/zerg-zerg/orgs","repos_url":"https://api.github.com/users/zerg-zerg/repos","events_url":"https://api.github.com/users/zerg-zerg/events{/privacy}","received_events_url":"https://api.github.com/users/zerg-zerg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-28T13:37:35Z","updated_at":"2015-10-28T21:09:00Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/incubator-reef/pulls/596","html_url":"https://github.com/apache/incubator-reef/pull/596","diff_url":"https://github.com/apache/incubator-reef/pull/596.diff","patch_url":"https://github.com/apache/incubator-reef/pull/596.patch"},"body":"This patch:\r\n * Adds the isLegalStateTransition() method to ResourceManagerStatus\r\n * Checks the state transition in the method according to the transition diagram from REEF-826\r\n * Calls the method in setState()\r\n * Throws IllegalStateException if the state transition is prohibited\r\n\r\nJIRA:\r\n [REEF-826] (https://issues.apache.org/jira/browse/REEF-826)"},"comment":{"url":"https://api.github.com/repos/apache/incubator-reef/issues/comments/151990650","html_url":"https://github.com/apache/incubator-reef/pull/596#issuecomment-151990650","issue_url":"https://api.github.com/repos/apache/incubator-reef/issues/596","id":151990650,"user":{"login":"afchung","id":2817619,"avatar_url":"https://avatars.githubusercontent.com/u/2817619?v=3","gravatar_id":"","url":"https://api.github.com/users/afchung","html_url":"https://github.com/afchung","followers_url":"https://api.github.com/users/afchung/followers","following_url":"https://api.github.com/users/afchung/following{/other_user}","gists_url":"https://api.github.com/users/afchung/gists{/gist_id}","starred_url":"https://api.github.com/users/afchung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afchung/subscriptions","organizations_url":"https://api.github.com/users/afchung/orgs","repos_url":"https://api.github.com/users/afchung/repos","events_url":"https://api.github.com/users/afchung/events{/privacy}","received_events_url":"https://api.github.com/users/afchung/received_events","type":"User","site_admin":false},"created_at":"2015-10-28T21:09:00Z","updated_at":"2015-10-28T21:09:00Z","body":"I'll do a pass."}}