{"action":"created","comment":{"url":"https://api.github.com/repos/scality/backbeat/pulls/comments/198338589","pull_request_review_id":132246093,"id":198338589,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5ODMzODU4OQ==","diff_hunk":"@@ -196,10 +195,16 @@ class BackbeatConsumer extends EventEmitter {\n     * is paused until the current queue of tasks are processed. Once the task\n     * queue is empty, the current offset is committed and the fetch is resumed\n     * to get the next batch of messages\n+    * @param {Boolean} [disableConsumer] - optional field, if true, kafka\n+    *   consumer should not subscribe to its topic\n     * @return {this} current instance\n     */\n-    subscribe() {\n-        this._consumer.subscribe([this._topic]);\n+    subscribe(disableConsumer) {\n+        if (!disableConsumer) {\n+            this._consumer.subscribe([this._topic]);\n+        } else {\n+            this._log.info(`consumer not subcribed to topic ${this._topic}`);","path":"lib/BackbeatConsumer.js","position":43,"original_position":38,"commit_id":"c817a92103941b4dafb87948e166ce7ccbd784af","original_commit_id":"c817a92103941b4dafb87948e166ce7ccbd784af","user":{"login":"jonathan-gramain","id":3418241,"node_id":"MDQ6VXNlcjM0MTgyNDE=","avatar_url":"https://avatars1.githubusercontent.com/u/3418241?v=4","gravatar_id":"","url":"https://api.github.com/users/jonathan-gramain","html_url":"https://github.com/jonathan-gramain","followers_url":"https://api.github.com/users/jonathan-gramain/followers","following_url":"https://api.github.com/users/jonathan-gramain/following{/other_user}","gists_url":"https://api.github.com/users/jonathan-gramain/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathan-gramain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathan-gramain/subscriptions","organizations_url":"https://api.github.com/users/jonathan-gramain/orgs","repos_url":"https://api.github.com/users/jonathan-gramain/repos","events_url":"https://api.github.com/users/jonathan-gramain/events{/privacy}","received_events_url":"https://api.github.com/users/jonathan-gramain/received_events","type":"User","site_admin":false},"body":"At this level I would rather log in debug mode, as the message is likely obscure for a normal user. Such message would better fit at the service level (stating that it's paused, for example).","created_at":"2018-06-27T00:49:38Z","updated_at":"2018-06-27T00:54:47Z","html_url":"https://github.com/scality/backbeat/pull/331#discussion_r198338589","pull_request_url":"https://api.github.com/repos/scality/backbeat/pulls/331","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/scality/backbeat/pulls/comments/198338589"},"html":{"href":"https://github.com/scality/backbeat/pull/331#discussion_r198338589"},"pull_request":{"href":"https://api.github.com/repos/scality/backbeat/pulls/331"}}},"pull_request":{"url":"https://api.github.com/repos/scality/backbeat/pulls/331","id":197239061,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk3MjM5MDYx","html_url":"https://github.com/scality/backbeat/pull/331","diff_url":"https://github.com/scality/backbeat/pull/331.diff","patch_url":"https://github.com/scality/backbeat/pull/331.patch","issue_url":"https://api.github.com/repos/scality/backbeat/issues/331","number":331,"state":"open","locked":false,"title":"ft: ZENKO-583 get CRR status","user":{"login":"philipyoo","id":11511641,"node_id":"MDQ6VXNlcjExNTExNjQx","avatar_url":"https://avatars2.githubusercontent.com/u/11511641?v=4","gravatar_id":"","url":"https://api.github.com/users/philipyoo","html_url":"https://github.com/philipyoo","followers_url":"https://api.github.com/users/philipyoo/followers","following_url":"https://api.github.com/users/philipyoo/following{/other_user}","gists_url":"https://api.github.com/users/philipyoo/gists{/gist_id}","starred_url":"https://api.github.com/users/philipyoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philipyoo/subscriptions","organizations_url":"https://api.github.com/users/philipyoo/orgs","repos_url":"https://api.github.com/users/philipyoo/repos","events_url":"https://api.github.com/users/philipyoo/events{/privacy}","received_events_url":"https://api.github.com/users/philipyoo/received_events","type":"User","site_admin":false},"body":"Check if CRR is enabled for a given destination replication location via the API.\r\nSave CRR status state within zookeeper. If pod goes down, read and resume from previous state","created_at":"2018-06-25T21:19:37Z","updated_at":"2018-06-27T00:54:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7f116e9b32d99830247af19b8faecad2f9db323f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/scality/backbeat/pulls/331/commits","review_comments_url":"https://api.github.com/repos/scality/backbeat/pulls/331/comments","review_comment_url":"https://api.github.com/repos/scality/backbeat/pulls/comments{/number}","comments_url":"https://api.github.com/repos/scality/backbeat/issues/331/comments","statuses_url":"https://api.github.com/repos/scality/backbeat/statuses/c817a92103941b4dafb87948e166ce7ccbd784af","head":{"label":"scality:feature/ZENKO-583-getCRRStatus","ref":"feature/ZENKO-583-getCRRStatus","sha":"c817a92103941b4dafb87948e166ce7ccbd784af","user":{"login":"scality","id":383812,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4MzgxMg==","avatar_url":"https://avatars1.githubusercontent.com/u/383812?v=4","gravatar_id":"","url":"https://api.github.com/users/scality","html_url":"https://github.com/scality","followers_url":"https://api.github.com/users/scality/followers","following_url":"https://api.github.com/users/scality/following{/other_user}","gists_url":"https://api.github.com/users/scality/gists{/gist_id}","starred_url":"https://api.github.com/users/scality/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scality/subscriptions","organizations_url":"https://api.github.com/users/scality/orgs","repos_url":"https://api.github.com/users/scality/repos","events_url":"https://api.github.com/users/scality/events{/privacy}","received_events_url":"https://api.github.com/users/scality/received_events","type":"Organization","site_admin":false},"repo":{"id":81391071,"node_id":"MDEwOlJlcG9zaXRvcnk4MTM5MTA3MQ==","name":"backbeat","full_name":"scality/backbeat","owner":{"login":"scality","id":383812,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4MzgxMg==","avatar_url":"https://avatars1.githubusercontent.com/u/383812?v=4","gravatar_id":"","url":"https://api.github.com/users/scality","html_url":"https://github.com/scality","followers_url":"https://api.github.com/users/scality/followers","following_url":"https://api.github.com/users/scality/following{/other_user}","gists_url":"https://api.github.com/users/scality/gists{/gist_id}","starred_url":"https://api.github.com/users/scality/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scality/subscriptions","organizations_url":"https://api.github.com/users/scality/orgs","repos_url":"https://api.github.com/users/scality/repos","events_url":"https://api.github.com/users/scality/events{/privacy}","received_events_url":"https://api.github.com/users/scality/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/scality/backbeat","description":"Zenko Backbeat is the core engine for asynchronous replication, optimized for queuing metadata updates and dispatching work to long-running tasks in the background.","fork":false,"url":"https://api.github.com/repos/scality/backbeat","forks_url":"https://api.github.com/repos/scality/backbeat/forks","keys_url":"https://api.github.com/repos/scality/backbeat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scality/backbeat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scality/backbeat/teams","hooks_url":"https://api.github.com/repos/scality/backbeat/hooks","issue_events_url":"https://api.github.com/repos/scality/backbeat/issues/events{/number}","events_url":"https://api.github.com/repos/scality/backbeat/events","assignees_url":"https://api.github.com/repos/scality/backbeat/assignees{/user}","branches_url":"https://api.github.com/repos/scality/backbeat/branches{/branch}","tags_url":"https://api.github.com/repos/scality/backbeat/tags","blobs_url":"https://api.github.com/repos/scality/backbeat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scality/backbeat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scality/backbeat/git/refs{/sha}","trees_url":"https://api.github.com/repos/scality/backbeat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scality/backbeat/statuses/{sha}","languages_url":"https://api.github.com/repos/scality/backbeat/languages","stargazers_url":"https://api.github.com/repos/scality/backbeat/stargazers","contributors_url":"https://api.github.com/repos/scality/backbeat/contributors","subscribers_url":"https://api.github.com/repos/scality/backbeat/subscribers","subscription_url":"https://api.github.com/repos/scality/backbeat/subscription","commits_url":"https://api.github.com/repos/scality/backbeat/commits{/sha}","git_commits_url":"https://api.github.com/repos/scality/backbeat/git/commits{/sha}","comments_url":"https://api.github.com/repos/scality/backbeat/comments{/number}","issue_comment_url":"https://api.github.com/repos/scality/backbeat/issues/comments{/number}","contents_url":"https://api.github.com/repos/scality/backbeat/contents/{+path}","compare_url":"https://api.github.com/repos/scality/backbeat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scality/backbeat/merges","archive_url":"https://api.github.com/repos/scality/backbeat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scality/backbeat/downloads","issues_url":"https://api.github.com/repos/scality/backbeat/issues{/number}","pulls_url":"https://api.github.com/repos/scality/backbeat/pulls{/number}","milestones_url":"https://api.github.com/repos/scality/backbeat/milestones{/number}","notifications_url":"https://api.github.com/repos/scality/backbeat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scality/backbeat/labels{/name}","releases_url":"https://api.github.com/repos/scality/backbeat/releases{/id}","deployments_url":"https://api.github.com/repos/scality/backbeat/deployments","created_at":"2017-02-09T00:31:22Z","updated_at":"2018-06-27T00:04:14Z","pushed_at":"2018-06-27T00:51:37Z","git_url":"git://github.com/scality/backbeat.git","ssh_url":"git@github.com:scality/backbeat.git","clone_url":"https://github.com/scality/backbeat.git","svn_url":"https://github.com/scality/backbeat","homepage":"https://www.zenko.io","size":2568,"stargazers_count":17,"watchers_count":17,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":12,"mirror_url":null,"archived":false,"open_issues_count":23,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":12,"open_issues":23,"watchers":17,"default_branch":"development/8.0"}},"base":{"label":"scality:feature/ZENKO-235-manualCRRPauseResume","ref":"feature/ZENKO-235-manualCRRPauseResume","sha":"f288387784c10cb2a0b1113f4fcbb3ce3803c1d8","user":{"login":"scality","id":383812,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4MzgxMg==","avatar_url":"https://avatars1.githubusercontent.com/u/383812?v=4","gravatar_id":"","url":"https://api.github.com/users/scality","html_url":"https://github.com/scality","followers_url":"https://api.github.com/users/scality/followers","following_url":"https://api.github.com/users/scality/following{/other_user}","gists_url":"https://api.github.com/users/scality/gists{/gist_id}","starred_url":"https://api.github.com/users/scality/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scality/subscriptions","organizations_url":"https://api.github.com/users/scality/orgs","repos_url":"https://api.github.com/users/scality/repos","events_url":"https://api.github.com/users/scality/events{/privacy}","received_events_url":"https://api.github.com/users/scality/received_events","type":"Organization","site_admin":false},"repo":{"id":81391071,"node_id":"MDEwOlJlcG9zaXRvcnk4MTM5MTA3MQ==","name":"backbeat","full_name":"scality/backbeat","owner":{"login":"scality","id":383812,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4MzgxMg==","avatar_url":"https://avatars1.githubusercontent.com/u/383812?v=4","gravatar_id":"","url":"https://api.github.com/users/scality","html_url":"https://github.com/scality","followers_url":"https://api.github.com/users/scality/followers","following_url":"https://api.github.com/users/scality/following{/other_user}","gists_url":"https://api.github.com/users/scality/gists{/gist_id}","starred_url":"https://api.github.com/users/scality/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scality/subscriptions","organizations_url":"https://api.github.com/users/scality/orgs","repos_url":"https://api.github.com/users/scality/repos","events_url":"https://api.github.com/users/scality/events{/privacy}","received_events_url":"https://api.github.com/users/scality/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/scality/backbeat","description":"Zenko Backbeat is the core engine for asynchronous replication, optimized for queuing metadata updates and dispatching work to long-running tasks in the background.","fork":false,"url":"https://api.github.com/repos/scality/backbeat","forks_url":"https://api.github.com/repos/scality/backbeat/forks","keys_url":"https://api.github.com/repos/scality/backbeat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scality/backbeat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scality/backbeat/teams","hooks_url":"https://api.github.com/repos/scality/backbeat/hooks","issue_events_url":"https://api.github.com/repos/scality/backbeat/issues/events{/number}","events_url":"https://api.github.com/repos/scality/backbeat/events","assignees_url":"https://api.github.com/repos/scality/backbeat/assignees{/user}","branches_url":"https://api.github.com/repos/scality/backbeat/branches{/branch}","tags_url":"https://api.github.com/repos/scality/backbeat/tags","blobs_url":"https://api.github.com/repos/scality/backbeat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scality/backbeat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scality/backbeat/git/refs{/sha}","trees_url":"https://api.github.com/repos/scality/backbeat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scality/backbeat/statuses/{sha}","languages_url":"https://api.github.com/repos/scality/backbeat/languages","stargazers_url":"https://api.github.com/repos/scality/backbeat/stargazers","contributors_url":"https://api.github.com/repos/scality/backbeat/contributors","subscribers_url":"https://api.github.com/repos/scality/backbeat/subscribers","subscription_url":"https://api.github.com/repos/scality/backbeat/subscription","commits_url":"https://api.github.com/repos/scality/backbeat/commits{/sha}","git_commits_url":"https://api.github.com/repos/scality/backbeat/git/commits{/sha}","comments_url":"https://api.github.com/repos/scality/backbeat/comments{/number}","issue_comment_url":"https://api.github.com/repos/scality/backbeat/issues/comments{/number}","contents_url":"https://api.github.com/repos/scality/backbeat/contents/{+path}","compare_url":"https://api.github.com/repos/scality/backbeat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scality/backbeat/merges","archive_url":"https://api.github.com/repos/scality/backbeat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scality/backbeat/downloads","issues_url":"https://api.github.com/repos/scality/backbeat/issues{/number}","pulls_url":"https://api.github.com/repos/scality/backbeat/pulls{/number}","milestones_url":"https://api.github.com/repos/scality/backbeat/milestones{/number}","notifications_url":"https://api.github.com/repos/scality/backbeat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scality/backbeat/labels{/name}","releases_url":"https://api.github.com/repos/scality/backbeat/releases{/id}","deployments_url":"https://api.github.com/repos/scality/backbeat/deployments","created_at":"2017-02-09T00:31:22Z","updated_at":"2018-06-27T00:04:14Z","pushed_at":"2018-06-27T00:51:37Z","git_url":"git://github.com/scality/backbeat.git","ssh_url":"git@github.com:scality/backbeat.git","clone_url":"https://github.com/scality/backbeat.git","svn_url":"https://github.com/scality/backbeat","homepage":"https://www.zenko.io","size":2568,"stargazers_count":17,"watchers_count":17,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":12,"mirror_url":null,"archived":false,"open_issues_count":23,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":12,"open_issues":23,"watchers":17,"default_branch":"development/8.0"}},"_links":{"self":{"href":"https://api.github.com/repos/scality/backbeat/pulls/331"},"html":{"href":"https://github.com/scality/backbeat/pull/331"},"issue":{"href":"https://api.github.com/repos/scality/backbeat/issues/331"},"comments":{"href":"https://api.github.com/repos/scality/backbeat/issues/331/comments"},"review_comments":{"href":"https://api.github.com/repos/scality/backbeat/pulls/331/comments"},"review_comment":{"href":"https://api.github.com/repos/scality/backbeat/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/scality/backbeat/pulls/331/commits"},"statuses":{"href":"https://api.github.com/repos/scality/backbeat/statuses/c817a92103941b4dafb87948e166ce7ccbd784af"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"jonathan-gramain"}}