{"action":"created","comment":{"url":"https://api.github.com/repos/apache/kafka/pulls/comments/88205754","pull_request_review_id":8784926,"id":88205754,"diff_hunk":"@@ -71,6 +71,48 @@\n     private static final Logger log = LoggerFactory.getLogger(StreamThread.class);\n     private static final AtomicInteger STREAM_THREAD_ID_SEQUENCE = new AtomicInteger(1);\n \n+    /**\n+     * Stream thread states are the possible state that a stream thread can be in.\n+     * A thread should only be in one state at a time\n+     * The expected state transition with the following defined states is:\n+     *\n+     *                +-----------+\n+     *                |Not Running|\n+     *                +-----+-----+\n+     *                      |\n+     *                      v\n+     *                +-----+-----+\n+     *          +---->| Running   |<------------+\n+     *          |     +-----+-----+             |\n+     *          |           |                   |\n+     *          |           v                   |\n+     *          |     +-----+------------+      |\n+     *          <---- |Partitions        |      |","path":"streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamThread.java","position":20,"original_position":20,"commit_id":"80548e1179adfae5d41a90c9bd43cd60ae37d5bf","original_commit_id":"80548e1179adfae5d41a90c9bd43cd60ae37d5bf","user":{"login":"miguno","id":294849,"avatar_url":"https://avatars.githubusercontent.com/u/294849?v=3","gravatar_id":"","url":"https://api.github.com/users/miguno","html_url":"https://github.com/miguno","followers_url":"https://api.github.com/users/miguno/followers","following_url":"https://api.github.com/users/miguno/following{/other_user}","gists_url":"https://api.github.com/users/miguno/gists{/gist_id}","starred_url":"https://api.github.com/users/miguno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miguno/subscriptions","organizations_url":"https://api.github.com/users/miguno/orgs","repos_url":"https://api.github.com/users/miguno/repos","events_url":"https://api.github.com/users/miguno/events{/privacy}","received_events_url":"https://api.github.com/users/miguno/received_events","type":"User","site_admin":false},"body":"So `Partitions Revoked` may transition to either of `Running`, `Partitions Assigned`, or `Pending Shutdown`, or also to any combinations thereof?","created_at":"2016-11-16T10:15:41Z","updated_at":"2016-11-16T10:15:41Z","html_url":"https://github.com/apache/kafka/pull/2135#discussion_r88205754","pull_request_url":"https://api.github.com/repos/apache/kafka/pulls/2135","_links":{"self":{"href":"https://api.github.com/repos/apache/kafka/pulls/comments/88205754"},"html":{"href":"https://github.com/apache/kafka/pull/2135#discussion_r88205754"},"pull_request":{"href":"https://api.github.com/repos/apache/kafka/pulls/2135"}}},"pull_request":{"url":"https://api.github.com/repos/apache/kafka/pulls/2135","id":93749893,"html_url":"https://github.com/apache/kafka/pull/2135","diff_url":"https://github.com/apache/kafka/pull/2135.diff","patch_url":"https://github.com/apache/kafka/pull/2135.patch","issue_url":"https://api.github.com/repos/apache/kafka/issues/2135","number":2135,"state":"open","locked":false,"title":"KAFKA-3637: Added initial states","user":{"login":"enothereska","id":14234336,"avatar_url":"https://avatars.githubusercontent.com/u/14234336?v=3","gravatar_id":"","url":"https://api.github.com/users/enothereska","html_url":"https://github.com/enothereska","followers_url":"https://api.github.com/users/enothereska/followers","following_url":"https://api.github.com/users/enothereska/following{/other_user}","gists_url":"https://api.github.com/users/enothereska/gists{/gist_id}","starred_url":"https://api.github.com/users/enothereska/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enothereska/subscriptions","organizations_url":"https://api.github.com/users/enothereska/orgs","repos_url":"https://api.github.com/users/enothereska/repos","events_url":"https://api.github.com/users/enothereska/events{/privacy}","received_events_url":"https://api.github.com/users/enothereska/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-15T11:43:17Z","updated_at":"2016-11-16T10:15:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bf52dcc9fb938f98634a189afb05aa793f7ac180","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/apache/kafka/pulls/2135/commits","review_comments_url":"https://api.github.com/repos/apache/kafka/pulls/2135/comments","review_comment_url":"https://api.github.com/repos/apache/kafka/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/kafka/issues/2135/comments","statuses_url":"https://api.github.com/repos/apache/kafka/statuses/80548e1179adfae5d41a90c9bd43cd60ae37d5bf","head":{"label":"enothereska:KAFKA-3637-streams-state","ref":"KAFKA-3637-streams-state","sha":"80548e1179adfae5d41a90c9bd43cd60ae37d5bf","user":{"login":"enothereska","id":14234336,"avatar_url":"https://avatars.githubusercontent.com/u/14234336?v=3","gravatar_id":"","url":"https://api.github.com/users/enothereska","html_url":"https://github.com/enothereska","followers_url":"https://api.github.com/users/enothereska/followers","following_url":"https://api.github.com/users/enothereska/following{/other_user}","gists_url":"https://api.github.com/users/enothereska/gists{/gist_id}","starred_url":"https://api.github.com/users/enothereska/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enothereska/subscriptions","organizations_url":"https://api.github.com/users/enothereska/orgs","repos_url":"https://api.github.com/users/enothereska/repos","events_url":"https://api.github.com/users/enothereska/events{/privacy}","received_events_url":"https://api.github.com/users/enothereska/received_events","type":"User","site_admin":false},"repo":{"id":44994140,"name":"kafka","full_name":"enothereska/kafka","owner":{"login":"enothereska","id":14234336,"avatar_url":"https://avatars.githubusercontent.com/u/14234336?v=3","gravatar_id":"","url":"https://api.github.com/users/enothereska","html_url":"https://github.com/enothereska","followers_url":"https://api.github.com/users/enothereska/followers","following_url":"https://api.github.com/users/enothereska/following{/other_user}","gists_url":"https://api.github.com/users/enothereska/gists{/gist_id}","starred_url":"https://api.github.com/users/enothereska/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enothereska/subscriptions","organizations_url":"https://api.github.com/users/enothereska/orgs","repos_url":"https://api.github.com/users/enothereska/repos","events_url":"https://api.github.com/users/enothereska/events{/privacy}","received_events_url":"https://api.github.com/users/enothereska/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/enothereska/kafka","description":"Mirror of Apache Kafka","fork":true,"url":"https://api.github.com/repos/enothereska/kafka","forks_url":"https://api.github.com/repos/enothereska/kafka/forks","keys_url":"https://api.github.com/repos/enothereska/kafka/keys{/key_id}","collaborators_url":"https://api.github.com/repos/enothereska/kafka/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/enothereska/kafka/teams","hooks_url":"https://api.github.com/repos/enothereska/kafka/hooks","issue_events_url":"https://api.github.com/repos/enothereska/kafka/issues/events{/number}","events_url":"https://api.github.com/repos/enothereska/kafka/events","assignees_url":"https://api.github.com/repos/enothereska/kafka/assignees{/user}","branches_url":"https://api.github.com/repos/enothereska/kafka/branches{/branch}","tags_url":"https://api.github.com/repos/enothereska/kafka/tags","blobs_url":"https://api.github.com/repos/enothereska/kafka/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/enothereska/kafka/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/enothereska/kafka/git/refs{/sha}","trees_url":"https://api.github.com/repos/enothereska/kafka/git/trees{/sha}","statuses_url":"https://api.github.com/repos/enothereska/kafka/statuses/{sha}","languages_url":"https://api.github.com/repos/enothereska/kafka/languages","stargazers_url":"https://api.github.com/repos/enothereska/kafka/stargazers","contributors_url":"https://api.github.com/repos/enothereska/kafka/contributors","subscribers_url":"https://api.github.com/repos/enothereska/kafka/subscribers","subscription_url":"https://api.github.com/repos/enothereska/kafka/subscription","commits_url":"https://api.github.com/repos/enothereska/kafka/commits{/sha}","git_commits_url":"https://api.github.com/repos/enothereska/kafka/git/commits{/sha}","comments_url":"https://api.github.com/repos/enothereska/kafka/comments{/number}","issue_comment_url":"https://api.github.com/repos/enothereska/kafka/issues/comments{/number}","contents_url":"https://api.github.com/repos/enothereska/kafka/contents/{+path}","compare_url":"https://api.github.com/repos/enothereska/kafka/compare/{base}...{head}","merges_url":"https://api.github.com/repos/enothereska/kafka/merges","archive_url":"https://api.github.com/repos/enothereska/kafka/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/enothereska/kafka/downloads","issues_url":"https://api.github.com/repos/enothereska/kafka/issues{/number}","pulls_url":"https://api.github.com/repos/enothereska/kafka/pulls{/number}","milestones_url":"https://api.github.com/repos/enothereska/kafka/milestones{/number}","notifications_url":"https://api.github.com/repos/enothereska/kafka/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/enothereska/kafka/labels{/name}","releases_url":"https://api.github.com/repos/enothereska/kafka/releases{/id}","deployments_url":"https://api.github.com/repos/enothereska/kafka/deployments","created_at":"2015-10-26T20:08:13Z","updated_at":"2016-01-28T16:05:20Z","pushed_at":"2016-11-15T11:42:42Z","git_url":"git://github.com/enothereska/kafka.git","ssh_url":"git@github.com:enothereska/kafka.git","clone_url":"https://github.com/enothereska/kafka.git","svn_url":"https://github.com/enothereska/kafka","homepage":null,"size":34937,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"trunk"}},"base":{"label":"apache:trunk","ref":"trunk","sha":"a32962af1427483eb103868497d3bfb6d5537fc6","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":2211243,"name":"kafka","full_name":"apache/kafka","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/kafka","description":"Mirror of Apache Kafka","fork":false,"url":"https://api.github.com/repos/apache/kafka","forks_url":"https://api.github.com/repos/apache/kafka/forks","keys_url":"https://api.github.com/repos/apache/kafka/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/kafka/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/kafka/teams","hooks_url":"https://api.github.com/repos/apache/kafka/hooks","issue_events_url":"https://api.github.com/repos/apache/kafka/issues/events{/number}","events_url":"https://api.github.com/repos/apache/kafka/events","assignees_url":"https://api.github.com/repos/apache/kafka/assignees{/user}","branches_url":"https://api.github.com/repos/apache/kafka/branches{/branch}","tags_url":"https://api.github.com/repos/apache/kafka/tags","blobs_url":"https://api.github.com/repos/apache/kafka/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/kafka/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/kafka/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/kafka/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/kafka/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/kafka/languages","stargazers_url":"https://api.github.com/repos/apache/kafka/stargazers","contributors_url":"https://api.github.com/repos/apache/kafka/contributors","subscribers_url":"https://api.github.com/repos/apache/kafka/subscribers","subscription_url":"https://api.github.com/repos/apache/kafka/subscription","commits_url":"https://api.github.com/repos/apache/kafka/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/kafka/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/kafka/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/kafka/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/kafka/contents/{+path}","compare_url":"https://api.github.com/repos/apache/kafka/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/kafka/merges","archive_url":"https://api.github.com/repos/apache/kafka/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/kafka/downloads","issues_url":"https://api.github.com/repos/apache/kafka/issues{/number}","pulls_url":"https://api.github.com/repos/apache/kafka/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/kafka/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/kafka/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/kafka/labels{/name}","releases_url":"https://api.github.com/repos/apache/kafka/releases{/id}","deployments_url":"https://api.github.com/repos/apache/kafka/deployments","created_at":"2011-08-15T18:06:16Z","updated_at":"2016-11-16T08:48:23Z","pushed_at":"2016-11-16T09:27:55Z","git_url":"git://github.com/apache/kafka.git","ssh_url":"git@github.com:apache/kafka.git","clone_url":"https://github.com/apache/kafka.git","svn_url":"https://github.com/apache/kafka","homepage":null,"size":52895,"stargazers_count":4108,"watchers_count":4108,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2547,"mirror_url":"git://git.apache.org/kafka.git","open_issues_count":299,"forks":2547,"open_issues":299,"watchers":4108,"default_branch":"trunk"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/kafka/pulls/2135"},"html":{"href":"https://github.com/apache/kafka/pull/2135"},"issue":{"href":"https://api.github.com/repos/apache/kafka/issues/2135"},"comments":{"href":"https://api.github.com/repos/apache/kafka/issues/2135/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/kafka/pulls/2135/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/kafka/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/kafka/pulls/2135/commits"},"statuses":{"href":"https://api.github.com/repos/apache/kafka/statuses/80548e1179adfae5d41a90c9bd43cd60ae37d5bf"}}}}
{"actor":{"display_login":"miguno"}}