{"action":"created","comment":{"url":"https://api.github.com/repos/aio-libs/aiokafka/pulls/comments/55705172","id":55705172,"diff_hunk":"@@ -0,0 +1,847 @@\n+import asyncio\n+import collections\n+import logging\n+\n+import kafka.common as Errors\n+from kafka.coordinator.assignors.roundrobin import RoundRobinPartitionAssignor\n+from kafka.coordinator.protocol import ConsumerProtocol\n+from kafka.common import OffsetAndMetadata, TopicPartition\n+from kafka.protocol.commit import (\n+    GroupCoordinatorRequest,\n+    OffsetCommitRequest_v2 as OffsetCommitRequest,\n+    OffsetFetchRequest_v1 as OffsetFetchRequest)\n+from kafka.protocol.group import (\n+    HeartbeatRequest, JoinGroupRequest,\n+    LeaveGroupRequest, SyncGroupRequest)\n+\n+from aiokafka import ensure_future\n+\n+log = logging.getLogger(__name__)\n+\n+\n+class AIOConsumerCoordinator(object):","path":"aiokafka/group_coordinator.py","position":22,"original_position":22,"commit_id":"d0507a87329cc91f2edc8478dba2114482b7f6b8","original_commit_id":"d0507a87329cc91f2edc8478dba2114482b7f6b8","user":{"login":"Drizzt1991","id":916148,"avatar_url":"https://avatars.githubusercontent.com/u/916148?v=3","gravatar_id":"","url":"https://api.github.com/users/Drizzt1991","html_url":"https://github.com/Drizzt1991","followers_url":"https://api.github.com/users/Drizzt1991/followers","following_url":"https://api.github.com/users/Drizzt1991/following{/other_user}","gists_url":"https://api.github.com/users/Drizzt1991/gists{/gist_id}","starred_url":"https://api.github.com/users/Drizzt1991/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Drizzt1991/subscriptions","organizations_url":"https://api.github.com/users/Drizzt1991/orgs","repos_url":"https://api.github.com/users/Drizzt1991/repos","events_url":"https://api.github.com/users/Drizzt1991/events{/privacy}","received_events_url":"https://api.github.com/users/Drizzt1991/received_events","type":"User","site_admin":false},"body":"Maybe rename it to GroupCoordinator. ","created_at":"2016-03-10T16:22:52Z","updated_at":"2016-03-10T16:22:52Z","html_url":"https://github.com/aio-libs/aiokafka/pull/18#discussion_r55705172","pull_request_url":"https://api.github.com/repos/aio-libs/aiokafka/pulls/18","_links":{"self":{"href":"https://api.github.com/repos/aio-libs/aiokafka/pulls/comments/55705172"},"html":{"href":"https://github.com/aio-libs/aiokafka/pull/18#discussion_r55705172"},"pull_request":{"href":"https://api.github.com/repos/aio-libs/aiokafka/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/aio-libs/aiokafka/pulls/18","id":61228176,"html_url":"https://github.com/aio-libs/aiokafka/pull/18","diff_url":"https://github.com/aio-libs/aiokafka/pull/18.diff","patch_url":"https://github.com/aio-libs/aiokafka/pull/18.patch","issue_url":"https://api.github.com/repos/aio-libs/aiokafka/issues/18","number":18,"state":"open","locked":false,"title":"Group coordinator for aiokafka Consumer","user":{"login":"fabregas","id":129505,"avatar_url":"https://avatars.githubusercontent.com/u/129505?v=3","gravatar_id":"","url":"https://api.github.com/users/fabregas","html_url":"https://github.com/fabregas","followers_url":"https://api.github.com/users/fabregas/followers","following_url":"https://api.github.com/users/fabregas/following{/other_user}","gists_url":"https://api.github.com/users/fabregas/gists{/gist_id}","starred_url":"https://api.github.com/users/fabregas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabregas/subscriptions","organizations_url":"https://api.github.com/users/fabregas/orgs","repos_url":"https://api.github.com/users/fabregas/repos","events_url":"https://api.github.com/users/fabregas/events{/privacy}","received_events_url":"https://api.github.com/users/fabregas/received_events","type":"User","site_admin":false},"body":"AIOConsumerCoordinator class implements group management for a single group member by interacting with a designated Kafka broker (the coordinator).","created_at":"2016-03-01T11:25:32Z","updated_at":"2016-03-10T16:22:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8b2fbef113bb138a17494feba093f4156f17d83f","assignee":{"login":"Drizzt1991","id":916148,"avatar_url":"https://avatars.githubusercontent.com/u/916148?v=3","gravatar_id":"","url":"https://api.github.com/users/Drizzt1991","html_url":"https://github.com/Drizzt1991","followers_url":"https://api.github.com/users/Drizzt1991/followers","following_url":"https://api.github.com/users/Drizzt1991/following{/other_user}","gists_url":"https://api.github.com/users/Drizzt1991/gists{/gist_id}","starred_url":"https://api.github.com/users/Drizzt1991/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Drizzt1991/subscriptions","organizations_url":"https://api.github.com/users/Drizzt1991/orgs","repos_url":"https://api.github.com/users/Drizzt1991/repos","events_url":"https://api.github.com/users/Drizzt1991/events{/privacy}","received_events_url":"https://api.github.com/users/Drizzt1991/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/aio-libs/aiokafka/pulls/18/commits","review_comments_url":"https://api.github.com/repos/aio-libs/aiokafka/pulls/18/comments","review_comment_url":"https://api.github.com/repos/aio-libs/aiokafka/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aio-libs/aiokafka/issues/18/comments","statuses_url":"https://api.github.com/repos/aio-libs/aiokafka/statuses/d0507a87329cc91f2edc8478dba2114482b7f6b8","head":{"label":"fabregas:master","ref":"master","sha":"d0507a87329cc91f2edc8478dba2114482b7f6b8","user":{"login":"fabregas","id":129505,"avatar_url":"https://avatars.githubusercontent.com/u/129505?v=3","gravatar_id":"","url":"https://api.github.com/users/fabregas","html_url":"https://github.com/fabregas","followers_url":"https://api.github.com/users/fabregas/followers","following_url":"https://api.github.com/users/fabregas/following{/other_user}","gists_url":"https://api.github.com/users/fabregas/gists{/gist_id}","starred_url":"https://api.github.com/users/fabregas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabregas/subscriptions","organizations_url":"https://api.github.com/users/fabregas/orgs","repos_url":"https://api.github.com/users/fabregas/repos","events_url":"https://api.github.com/users/fabregas/events{/privacy}","received_events_url":"https://api.github.com/users/fabregas/received_events","type":"User","site_admin":false},"repo":{"id":51517734,"name":"aiokafka","full_name":"fabregas/aiokafka","owner":{"login":"fabregas","id":129505,"avatar_url":"https://avatars.githubusercontent.com/u/129505?v=3","gravatar_id":"","url":"https://api.github.com/users/fabregas","html_url":"https://github.com/fabregas","followers_url":"https://api.github.com/users/fabregas/followers","following_url":"https://api.github.com/users/fabregas/following{/other_user}","gists_url":"https://api.github.com/users/fabregas/gists{/gist_id}","starred_url":"https://api.github.com/users/fabregas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabregas/subscriptions","organizations_url":"https://api.github.com/users/fabregas/orgs","repos_url":"https://api.github.com/users/fabregas/repos","events_url":"https://api.github.com/users/fabregas/events{/privacy}","received_events_url":"https://api.github.com/users/fabregas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fabregas/aiokafka","description":"asyncio client for kafka","fork":true,"url":"https://api.github.com/repos/fabregas/aiokafka","forks_url":"https://api.github.com/repos/fabregas/aiokafka/forks","keys_url":"https://api.github.com/repos/fabregas/aiokafka/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fabregas/aiokafka/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fabregas/aiokafka/teams","hooks_url":"https://api.github.com/repos/fabregas/aiokafka/hooks","issue_events_url":"https://api.github.com/repos/fabregas/aiokafka/issues/events{/number}","events_url":"https://api.github.com/repos/fabregas/aiokafka/events","assignees_url":"https://api.github.com/repos/fabregas/aiokafka/assignees{/user}","branches_url":"https://api.github.com/repos/fabregas/aiokafka/branches{/branch}","tags_url":"https://api.github.com/repos/fabregas/aiokafka/tags","blobs_url":"https://api.github.com/repos/fabregas/aiokafka/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fabregas/aiokafka/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fabregas/aiokafka/git/refs{/sha}","trees_url":"https://api.github.com/repos/fabregas/aiokafka/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fabregas/aiokafka/statuses/{sha}","languages_url":"https://api.github.com/repos/fabregas/aiokafka/languages","stargazers_url":"https://api.github.com/repos/fabregas/aiokafka/stargazers","contributors_url":"https://api.github.com/repos/fabregas/aiokafka/contributors","subscribers_url":"https://api.github.com/repos/fabregas/aiokafka/subscribers","subscription_url":"https://api.github.com/repos/fabregas/aiokafka/subscription","commits_url":"https://api.github.com/repos/fabregas/aiokafka/commits{/sha}","git_commits_url":"https://api.github.com/repos/fabregas/aiokafka/git/commits{/sha}","comments_url":"https://api.github.com/repos/fabregas/aiokafka/comments{/number}","issue_comment_url":"https://api.github.com/repos/fabregas/aiokafka/issues/comments{/number}","contents_url":"https://api.github.com/repos/fabregas/aiokafka/contents/{+path}","compare_url":"https://api.github.com/repos/fabregas/aiokafka/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fabregas/aiokafka/merges","archive_url":"https://api.github.com/repos/fabregas/aiokafka/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fabregas/aiokafka/downloads","issues_url":"https://api.github.com/repos/fabregas/aiokafka/issues{/number}","pulls_url":"https://api.github.com/repos/fabregas/aiokafka/pulls{/number}","milestones_url":"https://api.github.com/repos/fabregas/aiokafka/milestones{/number}","notifications_url":"https://api.github.com/repos/fabregas/aiokafka/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fabregas/aiokafka/labels{/name}","releases_url":"https://api.github.com/repos/fabregas/aiokafka/releases{/id}","deployments_url":"https://api.github.com/repos/fabregas/aiokafka/deployments","created_at":"2016-02-11T13:52:20Z","updated_at":"2016-02-11T13:52:21Z","pushed_at":"2016-03-10T16:17:00Z","git_url":"git://github.com/fabregas/aiokafka.git","ssh_url":"git@github.com:fabregas/aiokafka.git","clone_url":"https://github.com/fabregas/aiokafka.git","svn_url":"https://github.com/fabregas/aiokafka","homepage":null,"size":217,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"aio-libs:v0.9","ref":"v0.9","sha":"f341448add014d1d10dcc0d206dbda03d55d2422","user":{"login":"aio-libs","id":7049303,"avatar_url":"https://avatars.githubusercontent.com/u/7049303?v=3","gravatar_id":"","url":"https://api.github.com/users/aio-libs","html_url":"https://github.com/aio-libs","followers_url":"https://api.github.com/users/aio-libs/followers","following_url":"https://api.github.com/users/aio-libs/following{/other_user}","gists_url":"https://api.github.com/users/aio-libs/gists{/gist_id}","starred_url":"https://api.github.com/users/aio-libs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aio-libs/subscriptions","organizations_url":"https://api.github.com/users/aio-libs/orgs","repos_url":"https://api.github.com/users/aio-libs/repos","events_url":"https://api.github.com/users/aio-libs/events{/privacy}","received_events_url":"https://api.github.com/users/aio-libs/received_events","type":"Organization","site_admin":false},"repo":{"id":26046938,"name":"aiokafka","full_name":"aio-libs/aiokafka","owner":{"login":"aio-libs","id":7049303,"avatar_url":"https://avatars.githubusercontent.com/u/7049303?v=3","gravatar_id":"","url":"https://api.github.com/users/aio-libs","html_url":"https://github.com/aio-libs","followers_url":"https://api.github.com/users/aio-libs/followers","following_url":"https://api.github.com/users/aio-libs/following{/other_user}","gists_url":"https://api.github.com/users/aio-libs/gists{/gist_id}","starred_url":"https://api.github.com/users/aio-libs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aio-libs/subscriptions","organizations_url":"https://api.github.com/users/aio-libs/orgs","repos_url":"https://api.github.com/users/aio-libs/repos","events_url":"https://api.github.com/users/aio-libs/events{/privacy}","received_events_url":"https://api.github.com/users/aio-libs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aio-libs/aiokafka","description":"asyncio client for kafka","fork":false,"url":"https://api.github.com/repos/aio-libs/aiokafka","forks_url":"https://api.github.com/repos/aio-libs/aiokafka/forks","keys_url":"https://api.github.com/repos/aio-libs/aiokafka/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aio-libs/aiokafka/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aio-libs/aiokafka/teams","hooks_url":"https://api.github.com/repos/aio-libs/aiokafka/hooks","issue_events_url":"https://api.github.com/repos/aio-libs/aiokafka/issues/events{/number}","events_url":"https://api.github.com/repos/aio-libs/aiokafka/events","assignees_url":"https://api.github.com/repos/aio-libs/aiokafka/assignees{/user}","branches_url":"https://api.github.com/repos/aio-libs/aiokafka/branches{/branch}","tags_url":"https://api.github.com/repos/aio-libs/aiokafka/tags","blobs_url":"https://api.github.com/repos/aio-libs/aiokafka/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aio-libs/aiokafka/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aio-libs/aiokafka/git/refs{/sha}","trees_url":"https://api.github.com/repos/aio-libs/aiokafka/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aio-libs/aiokafka/statuses/{sha}","languages_url":"https://api.github.com/repos/aio-libs/aiokafka/languages","stargazers_url":"https://api.github.com/repos/aio-libs/aiokafka/stargazers","contributors_url":"https://api.github.com/repos/aio-libs/aiokafka/contributors","subscribers_url":"https://api.github.com/repos/aio-libs/aiokafka/subscribers","subscription_url":"https://api.github.com/repos/aio-libs/aiokafka/subscription","commits_url":"https://api.github.com/repos/aio-libs/aiokafka/commits{/sha}","git_commits_url":"https://api.github.com/repos/aio-libs/aiokafka/git/commits{/sha}","comments_url":"https://api.github.com/repos/aio-libs/aiokafka/comments{/number}","issue_comment_url":"https://api.github.com/repos/aio-libs/aiokafka/issues/comments{/number}","contents_url":"https://api.github.com/repos/aio-libs/aiokafka/contents/{+path}","compare_url":"https://api.github.com/repos/aio-libs/aiokafka/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aio-libs/aiokafka/merges","archive_url":"https://api.github.com/repos/aio-libs/aiokafka/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aio-libs/aiokafka/downloads","issues_url":"https://api.github.com/repos/aio-libs/aiokafka/issues{/number}","pulls_url":"https://api.github.com/repos/aio-libs/aiokafka/pulls{/number}","milestones_url":"https://api.github.com/repos/aio-libs/aiokafka/milestones{/number}","notifications_url":"https://api.github.com/repos/aio-libs/aiokafka/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aio-libs/aiokafka/labels{/name}","releases_url":"https://api.github.com/repos/aio-libs/aiokafka/releases{/id}","deployments_url":"https://api.github.com/repos/aio-libs/aiokafka/deployments","created_at":"2014-11-01T09:42:10Z","updated_at":"2016-02-27T02:39:25Z","pushed_at":"2016-03-10T16:17:00Z","git_url":"git://github.com/aio-libs/aiokafka.git","ssh_url":"git@github.com:aio-libs/aiokafka.git","clone_url":"https://github.com/aio-libs/aiokafka.git","svn_url":"https://github.com/aio-libs/aiokafka","homepage":null,"size":186,"stargazers_count":12,"watchers_count":12,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":6,"forks":5,"open_issues":6,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aio-libs/aiokafka/pulls/18"},"html":{"href":"https://github.com/aio-libs/aiokafka/pull/18"},"issue":{"href":"https://api.github.com/repos/aio-libs/aiokafka/issues/18"},"comments":{"href":"https://api.github.com/repos/aio-libs/aiokafka/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/aio-libs/aiokafka/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/aio-libs/aiokafka/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aio-libs/aiokafka/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/aio-libs/aiokafka/statuses/d0507a87329cc91f2edc8478dba2114482b7f6b8"}}}}