{"action":"created","comment":{"url":"https://api.github.com/repos/apache/kafka/pulls/comments/55143469","id":55143469,"diff_hunk":"@@ -55,10 +57,12 @@\n \n     private AtomicBoolean wakeup;\n \n+    private AtomicBoolean rebalanced = new AtomicBoolean(false);","path":"clients/src/main/java/org/apache/kafka/clients/consumer/MockConsumer.java","position":22,"original_position":22,"commit_id":"c180d914e249764339192db6ce0a2a2e88325b12","original_commit_id":"c180d914e249764339192db6ce0a2a2e88325b12","user":{"login":"SinghAsDev","id":4915557,"avatar_url":"https://avatars.githubusercontent.com/u/4915557?v=3","gravatar_id":"","url":"https://api.github.com/users/SinghAsDev","html_url":"https://github.com/SinghAsDev","followers_url":"https://api.github.com/users/SinghAsDev/followers","following_url":"https://api.github.com/users/SinghAsDev/following{/other_user}","gists_url":"https://api.github.com/users/SinghAsDev/gists{/gist_id}","starred_url":"https://api.github.com/users/SinghAsDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SinghAsDev/subscriptions","organizations_url":"https://api.github.com/users/SinghAsDev/orgs","repos_url":"https://api.github.com/users/SinghAsDev/repos","events_url":"https://api.github.com/users/SinghAsDev/events{/privacy}","received_events_url":"https://api.github.com/users/SinghAsDev/received_events","type":"User","site_admin":false},"body":"This is initialized with false, however once set true, it is never set to true again. Is the usage as you intended?","created_at":"2016-03-06T16:31:08Z","updated_at":"2016-03-06T16:31:08Z","html_url":"https://github.com/apache/kafka/pull/1016#discussion_r55143469","pull_request_url":"https://api.github.com/repos/apache/kafka/pulls/1016","_links":{"self":{"href":"https://api.github.com/repos/apache/kafka/pulls/comments/55143469"},"html":{"href":"https://github.com/apache/kafka/pull/1016#discussion_r55143469"},"pull_request":{"href":"https://api.github.com/repos/apache/kafka/pulls/1016"}}},"pull_request":{"url":"https://api.github.com/repos/apache/kafka/pulls/1016","id":61808057,"html_url":"https://github.com/apache/kafka/pull/1016","diff_url":"https://github.com/apache/kafka/pull/1016.diff","patch_url":"https://github.com/apache/kafka/pull/1016.patch","issue_url":"https://api.github.com/repos/apache/kafka/issues/1016","number":1016,"state":"open","locked":false,"title":"add some enhancements to MockConsumer","user":{"login":"fhussonnois","id":1786576,"avatar_url":"https://avatars.githubusercontent.com/u/1786576?v=3","gravatar_id":"","url":"https://api.github.com/users/fhussonnois","html_url":"https://github.com/fhussonnois","followers_url":"https://api.github.com/users/fhussonnois/followers","following_url":"https://api.github.com/users/fhussonnois/following{/other_user}","gists_url":"https://api.github.com/users/fhussonnois/gists{/gist_id}","starred_url":"https://api.github.com/users/fhussonnois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fhussonnois/subscriptions","organizations_url":"https://api.github.com/users/fhussonnois/orgs","repos_url":"https://api.github.com/users/fhussonnois/repos","events_url":"https://api.github.com/users/fhussonnois/events{/privacy}","received_events_url":"https://api.github.com/users/fhussonnois/received_events","type":"User","site_admin":false},"body":"The MockConsumer class should support adding records concurrently.\r\nThis allow to implement more complex test scenarios in which records are added concurrently with the records are polled.\r\n\r\nIn addition, I've implemented the rebalance callback in simple manner.","created_at":"2016-03-05T10:15:34Z","updated_at":"2016-03-06T16:31:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e39e0cc7c3389c2cf3c2648f91f1e73b543c1f3e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/kafka/pulls/1016/commits","review_comments_url":"https://api.github.com/repos/apache/kafka/pulls/1016/comments","review_comment_url":"https://api.github.com/repos/apache/kafka/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/kafka/issues/1016/comments","statuses_url":"https://api.github.com/repos/apache/kafka/statuses/c180d914e249764339192db6ce0a2a2e88325b12","head":{"label":"fhussonnois:trunk","ref":"trunk","sha":"c180d914e249764339192db6ce0a2a2e88325b12","user":{"login":"fhussonnois","id":1786576,"avatar_url":"https://avatars.githubusercontent.com/u/1786576?v=3","gravatar_id":"","url":"https://api.github.com/users/fhussonnois","html_url":"https://github.com/fhussonnois","followers_url":"https://api.github.com/users/fhussonnois/followers","following_url":"https://api.github.com/users/fhussonnois/following{/other_user}","gists_url":"https://api.github.com/users/fhussonnois/gists{/gist_id}","starred_url":"https://api.github.com/users/fhussonnois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fhussonnois/subscriptions","organizations_url":"https://api.github.com/users/fhussonnois/orgs","repos_url":"https://api.github.com/users/fhussonnois/repos","events_url":"https://api.github.com/users/fhussonnois/events{/privacy}","received_events_url":"https://api.github.com/users/fhussonnois/received_events","type":"User","site_admin":false},"repo":{"id":53139228,"name":"kafka","full_name":"fhussonnois/kafka","owner":{"login":"fhussonnois","id":1786576,"avatar_url":"https://avatars.githubusercontent.com/u/1786576?v=3","gravatar_id":"","url":"https://api.github.com/users/fhussonnois","html_url":"https://github.com/fhussonnois","followers_url":"https://api.github.com/users/fhussonnois/followers","following_url":"https://api.github.com/users/fhussonnois/following{/other_user}","gists_url":"https://api.github.com/users/fhussonnois/gists{/gist_id}","starred_url":"https://api.github.com/users/fhussonnois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fhussonnois/subscriptions","organizations_url":"https://api.github.com/users/fhussonnois/orgs","repos_url":"https://api.github.com/users/fhussonnois/repos","events_url":"https://api.github.com/users/fhussonnois/events{/privacy}","received_events_url":"https://api.github.com/users/fhussonnois/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fhussonnois/kafka","description":"Mirror of Apache Kafka","fork":true,"url":"https://api.github.com/repos/fhussonnois/kafka","forks_url":"https://api.github.com/repos/fhussonnois/kafka/forks","keys_url":"https://api.github.com/repos/fhussonnois/kafka/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fhussonnois/kafka/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fhussonnois/kafka/teams","hooks_url":"https://api.github.com/repos/fhussonnois/kafka/hooks","issue_events_url":"https://api.github.com/repos/fhussonnois/kafka/issues/events{/number}","events_url":"https://api.github.com/repos/fhussonnois/kafka/events","assignees_url":"https://api.github.com/repos/fhussonnois/kafka/assignees{/user}","branches_url":"https://api.github.com/repos/fhussonnois/kafka/branches{/branch}","tags_url":"https://api.github.com/repos/fhussonnois/kafka/tags","blobs_url":"https://api.github.com/repos/fhussonnois/kafka/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fhussonnois/kafka/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fhussonnois/kafka/git/refs{/sha}","trees_url":"https://api.github.com/repos/fhussonnois/kafka/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fhussonnois/kafka/statuses/{sha}","languages_url":"https://api.github.com/repos/fhussonnois/kafka/languages","stargazers_url":"https://api.github.com/repos/fhussonnois/kafka/stargazers","contributors_url":"https://api.github.com/repos/fhussonnois/kafka/contributors","subscribers_url":"https://api.github.com/repos/fhussonnois/kafka/subscribers","subscription_url":"https://api.github.com/repos/fhussonnois/kafka/subscription","commits_url":"https://api.github.com/repos/fhussonnois/kafka/commits{/sha}","git_commits_url":"https://api.github.com/repos/fhussonnois/kafka/git/commits{/sha}","comments_url":"https://api.github.com/repos/fhussonnois/kafka/comments{/number}","issue_comment_url":"https://api.github.com/repos/fhussonnois/kafka/issues/comments{/number}","contents_url":"https://api.github.com/repos/fhussonnois/kafka/contents/{+path}","compare_url":"https://api.github.com/repos/fhussonnois/kafka/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fhussonnois/kafka/merges","archive_url":"https://api.github.com/repos/fhussonnois/kafka/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fhussonnois/kafka/downloads","issues_url":"https://api.github.com/repos/fhussonnois/kafka/issues{/number}","pulls_url":"https://api.github.com/repos/fhussonnois/kafka/pulls{/number}","milestones_url":"https://api.github.com/repos/fhussonnois/kafka/milestones{/number}","notifications_url":"https://api.github.com/repos/fhussonnois/kafka/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fhussonnois/kafka/labels{/name}","releases_url":"https://api.github.com/repos/fhussonnois/kafka/releases{/id}","deployments_url":"https://api.github.com/repos/fhussonnois/kafka/deployments","created_at":"2016-03-04T14:03:43Z","updated_at":"2016-03-04T14:03:48Z","pushed_at":"2016-03-05T10:05:15Z","git_url":"git://github.com/fhussonnois/kafka.git","ssh_url":"git@github.com:fhussonnois/kafka.git","clone_url":"https://github.com/fhussonnois/kafka.git","svn_url":"https://github.com/fhussonnois/kafka","homepage":null,"size":27529,"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":"b7d6fae59ed782833981675efa0304ce2b12a59e","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-03-06T15:40:02Z","pushed_at":"2016-03-06T04:26:12Z","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":35844,"stargazers_count":2712,"watchers_count":2712,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1637,"mirror_url":"git://git.apache.org/kafka.git","open_issues_count":140,"forks":1637,"open_issues":140,"watchers":2712,"default_branch":"trunk"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/kafka/pulls/1016"},"html":{"href":"https://github.com/apache/kafka/pull/1016"},"issue":{"href":"https://api.github.com/repos/apache/kafka/issues/1016"},"comments":{"href":"https://api.github.com/repos/apache/kafka/issues/1016/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/kafka/pulls/1016/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/kafka/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/kafka/pulls/1016/commits"},"statuses":{"href":"https://api.github.com/repos/apache/kafka/statuses/c180d914e249764339192db6ce0a2a2e88325b12"}}}}